Re: Cutting wave file

Rob Leslie <[email protected]> Wed, 2 Jul 2003 16:30:24 -0700
Newsgroups gmane.comp.audio.mad.user
Message-ID <[email protected]>
On Tuesday, July 1, 2003, at 10:49  PM, mukesh harjai wrote:
>  I need to cut the wave file and store it as another file,
>  Please tell me cutting wave file is just like cutting any binary
>  file or some care needs to be taken care of while cutting wave file.

You can generally cut a WAVE file anywhere you like as long as it's on 
a sample block boundary. However, you should update the RIFF and data 
chunk headers with the new length, and you'll have to add a RIFF/WAVE 
header to the beginning of the new file.

Doing this is really beyond the scope of this list, but you might find 
some helpful information in the audio_wave.c module of the madplay 
distribution.

-- 
Rob Leslie
[email protected]