Jump to content
  • Advertisement


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

Brian Jones

Parsing a .wav header

This topic is 5965 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!