JavaSound

The new version of Java includes several packages that greatly expand the sound playback and creation capabilities of the language.

JavaSound, which was offered separately prior to Java 2 version 1.3, has become an official part of the Java class library as the following packages:

  • javax.sound.midi—Classes for playing, recording, and synthesizing sound files in MIDI format.

  • javax.sound.sampled—Classes for playing, recording, and mixing recorded audio files.

The JavaSound library supports all the audio formats available for playback in applets and applications: AIFF, AU, MIDI, and WAV. It also supports RMF, a standard for Rich Media Format music files.

MIDI Files

The javax.sound.midi package offers extensive support for ...

Get Sams Teach Yourself Java 2 in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.