Advertisement Jump to content
Sign in to follow this  
mojtaba_e

How can i load OGG files with DirectSound?

This topic is 4888 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

Advertisement
Yes, DirectSound can play only PCM wave data. If you want to play ogg with DirectSound you should download ogg vorbis sdk and program your own decoding routine.

Share this post


Link to post
Share on other sites
If you're not limited to using just DirectSound, you could download FMod or OpenAL. Both of those support the OGG Vorbis audio format.

EDIT: Personally, I would use those instead of trying to write my own decoding routines. Why try and redo something that's already been done by a professional? Especially if it's available to use for free!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!