Encoding an audio file

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


java AudioEncoder pcm_file encoded_file



the name of the PCM input file.


the name of the encoded output file.

Bugs, limitations.  This program requires JDK 1.5.0 or the latest version of Tritonus. Several formats, e.g. Ogg vorbis and GSM, can only be handled natively by Tritonus. If you want to use this format with the Sun jdk1.3/1.4, you have to install the respective plug-in from Tritonus Plug-ins.

Source code.  AudioEncoder.java, gnu.getopt.Getopt