1 Attachment(s)
VB6 - ACM (e.g. WAV/MP3 conversion)
A small module and class to use the ACM (Audio Compression Manager) in VB6.
The ACM manages all audio codecs installed on your Windows and let's you
convert between audio formats.
Included samples:
* codec enumeration
* PCM WAV resampling
* MP3 Encoder (a good codec is Lame ACM)
* MP3 Decoder (^)
Re: VB6 - ACM (e.g. WAV/MP3 conversion)
Quote:
Originally Posted by rm_03
A small module and class to use the ACM (Audio Compression Manager) in VB6.
The ACM manages all audio codecs installed on your Windows and let's you
convert between audio formats.
Included samples:
* codec enumeration
* PCM WAV resampling
* MP3 Encoder (a good codec is Lame ACM)
* MP3 Decoder (^)
Hi!
It was very nice code. Thank you
However could you please show me a code that convert PCM codec to another such as GSM 6 codec? not a MP3?
Is this possible with this modules?
Thanks :)
Re: VB6 - ACM (e.g. WAV/MP3 conversion)
Can I use this to say convert a 'portion' only of the wave file, let's say the first 3 secs?
Re: VB6 - ACM (e.g. WAV/MP3 conversion)
When I run your code, I get an error :
"Wrong number of arguments or invalid property assignment"
at this line:
If 1 <> acm.ConvertData(0, realout, , , usedlen) Then
---------------------------------
It's been just over 10 years since you posted. You could have received a message from 10 different star systems in less time, but still I thought I'd write.
Any chance you could figure out what is wrong with the code?
David
Re: VB6 - ACM (e.g. WAV/MP3 conversion)
Dear Thread Starter, I was very pleased to have just found your ACM.ZIP file as i was hoping to see if i could create a WAV file from an existing MP3 file, your knowledge of coding is simply amazing. Unfortunately there is an error in the MP3 Dec Program - frmMain Sub ConvertFile Wrong Number of Arguments or Invalid Property Assignment.
If you are able to help me understand why, and correct the error, i would be really appreciate that.
Yours Sincerely. Philip from Manchester UK.
Re: VB6 - ACM (e.g. WAV/MP3 conversion)
Re: VB6 - ACM (e.g. WAV/MP3 conversion)
Quote:
Originally Posted by
The trick
The Trick
Dear Sir
Thanks very much indeed for your reply, i have downloaded and tested the new code and it works perfectly.
Now i can enjoy retirement even more and continue my own projects.
Yours Sincerely
Philip
Re: VB6 - ACM (e.g. WAV/MP3 conversion)
Quote:
Originally Posted by
rm_03
A small module and class to use the ACM (Audio Compression Manager) in VB6.
The ACM manages all audio codecs installed on your Windows and let's you
convert between audio formats.
Included samples:
* codec enumeration
* PCM WAV resampling
* MP3 Encoder (a good codec is Lame ACM)
* MP3 Decoder (^)
project:WAV Conv
wfx.nSamplesPerSec =16000
but show in EXPORER:256KBPS,WHY?