The Resource Intercharge File Format (RIFF) Wave file has
the following structure:
<ID> 4 character code "RIFF"
<Size> 4 Bytes, length of data field
<Data> <Size> Bytes of Data
The <Data> field of a "RIFF" chunk has the following format
<FormType> specifying the format of the data;
4 character code "WAVE" for .WAV files
<ID> Subchunk; 4cc "fmt " for .WAV files
<Size> 4 Bytes, length of data field
<data> Stereo/Mono, kHz, etc.
<ID> Subchunk; 4cc "data" for .WAV files
<Size> 4 Bytes, length of data field
<data> PCM Samples for .WAV files
There are a lot of chunk types like "LIST" containing
information on Author, Date or other usefull information.
So one has to walk through this tree of chunks to find
the PCM-samples of a wave file.
Rober
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )