[music-dsp] Re: C or Pascal code for WAV I/O

christian adam hresko godpup at ix.netcom.com
Sat Jul 21 06:04:30 EDT 2001


i would check out chris bagwell's SoX (Sound Exchange) project.  he
helped and provided me with a good deal of code for an article i wrote
regarding various file formats. (maybe the article will be useful to
people on this list... it's due out in a book called Audio Anecdotes)

anyway, check out the SoX site and all the links chris provides.  that
should get you started.  and he also takes into consideration the big
endian vs. little endian 'format' conflicts. (which can be a pain in the
ass, but easily rectified with a few lines of code)  you also have to be
careful as to how you declare your primitives.  8, 16, 32,  or 64 (and
128) bit machines are going to handle signed and unsigned integers
differently.  so when you start combining machines with different word
sizes and endianess, you have to take these into account for proper file
parsing...

i think the AIFF format is quite nice.


cheers,

christian





dupswapdrop -- the music-dsp mailing list and website: subscription info,
FAQ, source code archive, list archive, book reviews, dsp links
http://shoko.calarts.edu/musicdsp/




More information about the music-dsp mailing list