Java Glossary : sound

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : S words : sound.

sound
Here are some places where you can find canned sounds: Microsoft extra sound schemes SoundAmerica or pcug. You can get Star Trek sounds at Nexus1.net.

Windows stores its *.wav files in C:\WINNT\media.

I have posted some source code to create sounds mathematically, i.e. create AU files in RAM and play them with sun.audio.AudioPlayer.start. If you feed it a Math.sin wave for example you will hear an smooth continous tone of the same frequency as the sine wave. You can create any theoretically possible sound. All you need is a way of mathematically describing it, or providing a list of amplitudes. sun.audio is not an official class. It is accessible in Applets in JDK 1.1, not in JDK 1.2, but is now back again in JDK 1.4.

You can also play AU, wav, MIDI and aiff files with java.applet.AudioClip.play . For AU files use G.711 µ-law format not PCM. RealPlayer is required for ra files.

You can use javax.sound.midi to play MIDI files.

You can use javax.sound.sampled.SourceDataLine can be used to merge sampled datastreams and play a variety of sound files.

Playing A Sound


view

Sythesizing Sound Mathematically


view

Common Sound File Types

extension purpose
*.aiff MacIntosh uncompressed audio
*.asf Microsoft media files
*.au Unix uncompressed audio
*.avi earlier Microsoft video format
*.mp3 mpeg audio
*.mpeg mpeg video
*.ra RealAudio
*.ram RealAudio
*.rm RealAudio
*.wav Microsoft uncompressed audio
*.wma Microsoft audio files
*.wmv Microsoft video files

The official Java sound interface is called JMF. It can play many audio and video file formats including MP3.

AU ¤ beep ¤ ClipStream ¤ Crescendo ¤ Freedom Audio ¤ IMF ¤ Java Sound FAQ ¤ JavaZoom MP3 player ¤ JMF ¤ JSAPI ¤ MIDI ¤ MIME ¤ MP-3 ¤ Real Audio ¤ sound-on-the-fly ¤ Soundbite ¤ Speaker: make tones on the built-in PC Speaker from Java ¤ wav


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 2604.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/sound.html J:\mindprod\jgloss\sound.html