aifc2wav 4.c review
Downloadaifc2wav is an aifc (ima4, sowt or sdx2) to wav translator. I made this little piece of software, because I wanted to listen to so
|
|
aifc2wav is an aifc (ima4, sowt or sdx2) to wav translator.
I made this little piece of software, because I wanted to listen to some khoomei music (23 Jul 2005: link appears to be dead), and some of those AIFC files were not handled by sox, nor xmms, nor mplayer. Those files were in AIFC IMA4 format.
How to use it?
Unzip the C file with gunzip.
You will need a C compiler (gcc is fine). Simply compile it (for instance gcc -o aifc2wav aifc2wav-4.c), and you are done.
It handles AIFC IMA4 files, AIFC SOWT files and AIFC SDX2 files, both mono and stereo (not sure for SDX2). The SOWT scheme has not been widely tested, if your file sounds strange, contact me. (Same for SDX2.)
It will produce a WAV file. Why WAV? Because WAV files are handled by almost everyone. If you want raw data, you can skip the 44 bytes long header (something like dd if=INPUT_FILE of=OUTPUT_FILE bs=44 skip=1 under unix). Or use sox, which is a good program.
It is supposed to work on any machine, little/big endian. The only problem that might appear is because of this silly 80 bits extended float used by those silly coders. Who needs that much precision for a frequency? Well, so they did, so they did. I don't know if I handle this correctly or not.
aifc2wav 4.c search tags