Produkt
asked on
Play MP3 from Resource File
How do I play an MP3 from a resource file?
If the MP3 has a WAV-header, you can play it with the API-function PlaySound.
ASKER
And if it doesn't?
No idea if it's possible, why do you prefer the difficult way?
If your MP3 doesn't have a wav-header, there are free tools that can add the wav-header. Or you could write a program yourself to get info from the first frameheader of the mp3 and construct a wav-header with it.
If your MP3 doesn't have a wav-header, there are free tools that can add the wav-header. Or you could write a program yourself to get info from the first frameheader of the mp3 and construct a wav-header with it.
ASKER
I understand how to play using sndPlaySound function, but I don't know how to play it from a resource file.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, works well.