Re: Extracting Raw PCM data from .wav file
- From: Richard Dobson <richarddobson@xxxxxxxxxxxxxxxx>
- Date: Fri, 29 Aug 2008 13:05:05 +0100
rajesh wrote:
On Aug 29, 3:06 pm, "jadhav_rahul" <rahul.jad...@xxxxxxxxxxxxx> wrote:Hi all,
I want to extract Raw PCM data from .wav file, I have gone through
RIFF format for .wave files
RIFF( 'WAVE'
<fmt-ck> // Format
[<fact-ck>] // Fact chunk
[<cue-ck>] // Cue points
[<playlist-ck>] // Playlist
[<assoc-data-list>] //Associated data list
<wave-data> ) // Wave data
i am not getting information about how to decide whether optional field
(in [ ] ) are being used or not? or they are not for .wave ?
also can any one have link/code for extracting Raw PCM from .WAVE format?
Thanks in Advance,
Rahul.
http://www.thisisnotalabel.com/How-to-Read-and-Write-WAV-Files---in-C-and-VB.php
These days, one must ~expect~ other chunks to appear between <fmt > and <data> - including all or any of the above. You can even legally have chunks between the opening RIFF<WAVE> and <fmt >, though I can't remember the last time I found that in a file. So that site (like so many, sadly) is giving a wrong idea of how the format works. The solution however, is easy - just ignore (skip over) any chunks you don't know about or don't need.
Or, even more simply - use libsndfile!
Richard Dobson
.
- Follow-Ups:
- Re: Extracting Raw PCM data from .wav file
- From: jadhav_rahul
- Re: Extracting Raw PCM data from .wav file
- References:
- Extracting Raw PCM data from .wav file
- From: jadhav_rahul
- Re: Extracting Raw PCM data from .wav file
- From: rajesh
- Extracting Raw PCM data from .wav file
- Prev by Date: Re: gamnitude range of a cepstrum
- Next by Date: Re: Program intellectual property protection on DM648
- Previous by thread: Re: Extracting Raw PCM data from .wav file
- Next by thread: Re: Extracting Raw PCM data from .wav file
- Index(es):
Relevant Pages
|