So, I decided to program using MCI commands to access Windows API
directly...
The documentation I have found comes from MSDN Library July 1998. They say
there are multimedia device constants to control the devices (waveaudio,
sequencer, etc). Also, if a device is not listed, there's an "other"
constant you can use to control the device. (mci_devtype_other).
Well, I tried the following:
Private Sub cmdOpen_Click()
wtrash = MCIExecute("Open test.mp3 type other alias sound")
wtrash = MCIExecute("Play sound wait")
wtrash = MCIExecute("Close sound")
End Sub
That didn't work. There's an error message saying "other" it's not a
recognized deviceID.
Instead, I tried to use the MCI32.OCX control. This control playbacks MP3
sounds, so I tried to capture the DeviceID , but it returns a null String.
Also, when I use mci_waveform_audio , it plays MP3!!. But I have a problem
because the file plays only one time, after that it don't play anymore.
I have search for valid MCI Extensions in my System.ini file, but there's no
association with MP3. When I search in my WIN.INI file, I found the
following:
[mci extensions]
mp3=MPEGVideo.
Well, I tried to use this as a DeviceId. The program recognized it, but it
doesn't playback the sound. (I couldn't hear anything). There's no error
message or any other thing indicating an error.
My question is : Anyone knows about the correct DeviceID I must use?....
There's another way to playback MP3s quickly?.
HELP ME!!
Franco Valle
MADMICRO S.A.
Tlf: 221-2571, Anexo 205
Email : frv...@madmicro.com , fva...@ascinsa.com.pe