Link to home
Start Free TrialLog in
Avatar of Produkt
Produkt

asked on

Play MP3 from Resource File

How do I play an MP3 from a resource file?
Avatar of VBtom
VBtom

If the MP3 has a WAV-header, you can play it with the API-function PlaySound.
Avatar of Produkt

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.
Avatar of Produkt

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
Avatar of VBtom
VBtom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Produkt

ASKER

Thanks, works well.