>
> 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.
>
> Robert
>
Thanks! I just added this fix to LAME. LAME will now read (and
ingore) all the chunks until it gets to one labeled "data".
This works with both types of .wav files I have.
I also tried to clean up the audio I/O routines, and moved all of them
into get_audio.c, making musicin.c much simplier.
Mark
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )