Decoding an encoded audio file

Purpose.  Decodes an encoded audio file, writes the result as a PCM file.


java AudioDecoder encodedfile pcmfile



the name of the encoded input file.


the name of the PCM output file.

Bugs, limitations. The output file type and audio format can't be selected. Compressed formats can be handled depending on the capabilities of the Java Sound implementation it is run with. A-law and μ-law can be handled in any known Java Sound implementation. Ogg vorbis, mp3 and GSM 06.10 can be handled by Tritonus. If you want to play these formats with the Sun jdk1.3/1.4, you have to install the respective plug-ins from Tritonus Plug-ins.

Source code.