开发者

How to embed mp3 into .exe file & Play it?

开发者 https://www.devze.com 2022-12-25 18:01 出处:网络
I am used to embed WAV into .exe and Play it using PlaySound(). However, using this method causes the .exe to become pretty big.

I am used to embed WAV into .exe and Play it using PlaySound(). However, using this method causes the .exe to become pretty big.

Is it possible to do the same with MP3 files and how to do it?

I have taken a look at DirectShow but it seems to be able to play from file开发者_高级运维s only?

I am developing for Windows Mobile 6 Series


You can try to save the mp3 as mp3 with RIFF-WAV header and embed the file in resources. I did not check windows-mobile and a file stored in resources but on Windows XP and separate file the PlaySound of such RIFF-WAV MP3 file works.

0

精彩评论

暂无评论...
验证码 换一张
取 消