Solved

How to play MP3 files in VB?

Posted on 1997-12-26
6
727 Views
Last Modified: 2008-02-01
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.
0
Comment
Question by:kbakst
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:mrmick
ID: 1447674
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?
0
 

Author Comment

by:kbakst
ID: 1447675
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.
0
 
LVL 8

Expert Comment

by:mrmick
ID: 1447676
Where did you get the MP3 compressor?  I may be able to find what you're looking for.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:kbakst
ID: 1447677
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 .
0
 
LVL 7

Accepted Solution

by:
linda101698 earned 100 total points
ID: 1447678
I'm posting the solution found by kbakst so it can be saved in the previously asked questions.

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).
0
 
LVL 8

Expert Comment

by:mrmick
ID: 1447679
Maverick, you can email me at: mick@owen.wa.com - I cannot return to review comments in this question.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question