Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HELP!!!!....Programming playback for MP3s audio files

0 views
Skip to first unread message

Franco Valle Melgar

unread,
Oct 14, 1998, 3:00:00 AM10/14/98
to
Hi all!
I'm involved in the development of a new automated system for Radio
Broadcast, using MP3s. My system runs on NT network and is programmed using
Visual Basic 5.0.
I used the controls installed by Media Player 6, to control the playback and
other functions, using Visual Basic. All the commands work fine but it is
too slow!!!, specially when it opens a file locally and over a network (it
takes 1 -2 seconds), and it must not happen when the signal is on air.

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


0 new messages