Playing an audio file (easy)

Purpose. Plays a single audio file.

Usage. 

java SimpleAudioPlayer audiofile

Parameters. 

audiofile

the name of the audio file that should be played

Bugs, limitations. Only PCM encoded files are supported. A-law, μ-law, ADPCM, ogg vorbis, mp3 and other compressed data formats are not supported. For playing these, see AudioPlayer.

Source code.  SimpleAudioPlayer.java