Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

Play MP3 from Resource File

How do I play an MP3 from a resource file?
0
Produkt
Asked:
Produkt
  • 3
  • 3
1 Solution
 
VBtomCommented:
If the MP3 has a WAV-header, you can play it with the API-function PlaySound.
0
 
ProduktAuthor Commented:
And if it doesn't?
0
 
VBtomCommented:
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ProduktAuthor Commented:
I understand how to play using sndPlaySound function, but I don't know how to play it from a resource file.
0
 
VBtomCommented:
Use Playsound, not sndPlaysound

Look here for an example: http://www.syix.com/wpsjr1/playressound.zip
0
 
ProduktAuthor Commented:
Thanks, works well.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now