Jump to content
  • Advertisement
Sign in to follow this  

[.net] Playing MP3s with DirectSound

This topic is 4725 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
You can decompress the encoded files using Win32's multimedia functions of the Audio Compression Manager. Unfortunately, there is no freely available .NET wrapper for these, and dealing the functions is frankly a bit of a pain. However, it's mostly due to poor documentation and strange design rather than any inherent difficulty, so if you put in a little bit of time, it should be easy to figure out. From there, pumping the decoded PCM data into a DirectSound buffer is trivial.

Another much simpler alternative would be to just use the AudioVideoPlayback.Audio class.

Hope this helps point you in the right direction.

-bodisiw

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!