Link to home
Start Free TrialLog in
Avatar of kbakst
kbakst

asked on

How to play MP3 files in VB?

I have an application that is playing .wav files via the MCI APIs, but due to the large size of the .wav files (> 300MB) I would like to encode them in MP3.  I have the compressor, but am unsure how to play them in VB.

Any help would be appreciated.
Avatar of mrmick
mrmick

I'm pretty sure you can only play WAV files through the API calls, can you compress them and uncompress one just before you play it?
Avatar of kbakst

ASKER

That is the question I'm asking.  I need to know if there is another set of API calls (perhaps available with an MP3 decompressor) for 32 bit Windows apps that I can call from VB.
Where did you get the MP3 compressor?  I may be able to find what you're looking for.
Avatar of kbakst

ASKER

Well, I found a good solution.  I found a freeware program called dwav2mpe.exe that will encode .wav files into MP3 format and leave the .wav header, allowing you to play them with the standard MCI API calls, as long as you have the proper CODEC installed (it comes with Microsoft Netshow).

Thanks anyway .
ASKER CERTIFIED SOLUTION
Avatar of linda101698
linda101698

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
Maverick, you can email me at: mick@owen.wa.com - I cannot return to review comments in this question.