Archived

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

how to decode mp3 to DirectSound buffer

This topic is 5048 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
thank you..

suppose we don''t use DirectShow, only directsound,then how to solve??

Share this post


Link to post
Share on other sites
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