playing mp3s using direct sound/music

Started by
1 comment, last by supamike 16 years, 9 months ago
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.
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.
awesome, thanks!

This topic is closed to new replies.

Advertisement