Archived

This topic is now archived and is closed to further replies.

Brian Jones

Parsing a .wav header

Recommended Posts

I''m not totally sure this belongs here, but here goes...I am using DirectXSound for my sounds, and in order to play them I have to parse the headers. I''m using the mmio functions. The thing is I''ve memorized the steps (bad thing, I know), instead of actually trying to understand what I was doing, which is descending and ascending through a file. Right after you open the file with mmioOpen(), you set the parent MMCKINFO struc fccType field to ''W'', ''A'', ''V'', ''E'', and descend into the wave file with wflags being MMIO_FINDRIFF. What that does is makes sure the file being searched through is a RIFF file, and that you want to start off at the wave chuck first, correct? Then you can descend into the fmt chunk, and receive data about the wave format, and then the data chunk and so on. Could you please tell me if thats correct. If it is, then I pretty much got the gist of parsing a wave.

Share this post


Link to post
Share on other sites