Jump to content
  • Advertisement

Archived

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

sofsenint

DirectSound streaming audio

This topic is 5749 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 trying to create a class to load a wave as streaming audio. Would I take all the data from the wave and put it into an array of USHORTs or whatever data type it is or constantly reopen the file and get the needed data out? Thanx!

Share this post


Link to post
Share on other sites
Advertisement
You could manually stream your audio, although I would not recommend repeatedly closing and reopening the file as this would hurt performance a lot. You should just leave the file open and copy in the sections you want when you need them.

However, I would recommend looking into either DirectShow or DirectMusic as they both provide streaming functionality for you.

Cheers,
John

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!