May 27, 2017, 05:51 AM

News:

Recent Website Purchased by Us : Enthiran


Playing Sounds

Started by sukishan, Jul 15, 2009, 08:45 PM

previous topic - next topic
Go Down

sukishan

Playing Sounds
The JApplet class in the Java Swing package (javax.swing), and the AudioClip interface in the Java Applet package (java.applet) provide basic support for playing sounds. Currently, the Java API supports only one sound format: 8 bit, -law, 8000 Hz, one-channel, Sun ".au" files. You can create these on a Sun workstation using the audiotool application. You can convert files from other sound formats using an audio format conversion program.

Sound-Related Methods
Below are the sound-related Applet methods. The two-argument form of each method takes a base URL, which is usually returned by either getDocumentBase or getCodeBase, and the location of the sound file relative to the base URL.

getAudioClip(URL), getAudioClip(URL, String)
Return an object that implements the AudioClip interface.
play(URL), play(URL, String)
Play the AudioClip corresponding to the specified URL.
The AudioClip interface defines the following methods:

loop
Starts playing the clip repeatedly.
play
Plays the clip once.
stop
Stops the clip. Works with both looping and one-time sounds.
A good beginning makes a good ending

pradeep prem

from java clip we can easily play sound and audio clip

from java applet we can basic support for playing sound and loop has given

the website easy to recognize

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:
Verification:
Please leave this box empty:

Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

shortcuts: alt+s submit/post or alt+p preview
Network of IT Acumens | GinGly :: SMS Backup | Acumen :: Discussion Board | AshokPillar :: Hosting | CineBuzz :: Latest Cinema News | My Kids Diary :: Capture your kids magical moment
Copyright 2005 - 2016 :: IT Acumens :: All Rights Reserved.
ITAcumens Forum with 2 lakhs post running for 10 years - Powered by HostGator Dedicated Server