Encoding an audio file to μ-law

Purpose. Encodes a PCM audio file, writes the result as an .au-file, μ-law encoded.

Usage. 

java UlawEncoder pcmfile ulawfile

Parameters. 

pcmfile

the name of the PCM input file.

ulawfile

the name of the μ-law output file.

Bugs, limitations. Does not work with the Sun jdk1.3 (see bug #4391108). According to Florian, this bug is fixed in jdk1.4.

Source code.  UlawEncoder.java