Jump to content
  • Advertisement

Archived

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

suzuki

how to decode mp3 to DirectSound buffer

This topic is 5230 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 want to play mp3 using directsound. but DS does not support mp3, then how to convert mp3 to wave file??

Share this post


Link to post
Share on other sites
Advertisement
MSDN mentions that "use the audio compression manager (ACM) functions... to convert compressed audio to PCM format before writing the data to a sound buffer"..

but i just cannot figure out how to use the ACM functions?

can anyone post some source code or examples??
thanks~~_~~

Share this post


Link to post
Share on other sites
AFAIK there''s simply no support for mp3 compression built in DirectSound. You gotta decompress that yourself. DirectSound just provides buffer playback (put simply), you even have to decode wav-files yourself.

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!