Jump to content
  • Advertisement
Sign in to follow this  
supamike

playing mp3s using direct sound/music

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

Hey, i'm using direct sound (dx9 native) to add sounds and music into my game, however of course it can only play .wav or .midi files. Is there any way to load mp3 files into dsound? i had a look on google and found that you can do it through managed dx using AudioVideoPlayback but this isn't available in unmanaged dx9 (to the best of my knowledge). Any ideas? this'd clearly reduce the size of my game if i didn't have 30mb .wav files for the background music.

Share this post


Link to post
Share on other sites
Advertisement
To play mp3's with DirectX, you should use DirectShow. Just do a google search on how to play mp3's with directshow. It is a fair amount of coding, but it is useful if you want the mp3 format in your game or application.

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.

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!