The encoder now writes to a file instead.
The encoder can now read wave files.

However, it only correctly handles  wave files that are 16-bit, have a
sample rate of 44100Hz, and are stereo.