vsound allows you to record the output of any
standard OSS program that uses /dev/dsp without
having to modify or recompile the program. It uses
the same idea as the esddsp wrapper and preloads a
library that intercepts calls to open /dev/dsp and
returns a handle to a normal file. It also intercepts
IOCTLs on that file handle and logs them to help
convert the audio data from its raw form. It then uses
sox to convert the raw data to the desired file format.