Java allows you to play audio files that are encoded in a particular format. Sound files must be 8-bit, mono, mu-law encoded, .au files. This is fairly restrictive and does not even cover all .au files.

Furthermore, Java only allows sound to be played by applets. The java classes do not currently provide a means for playing sounds in non-applets.

These restrictions are likely to be relaxed in the future through the Java Media Framework and API. However for now Java's audio support is quite limited.

Previous | Next | Top | Cafe au Lait

Copyright 1997 Elliotte Rusty Harold
Last Modified March 31, 1997