 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Tue May 16, 2006 3:14 pm Post subject: How to play three .mp3 in one application and choose one of |
|
|
Hi everyone,
I would like to play three .mp3 in one application and choose one of
three players for line-out.
For example, while three players are playing three different .mp3, I
can choose one of them for line-out so I can listen to one .mp3 and
can't listen to the rest two .mp3 file (of course these two files are
still playing.).
Does anyone know how to do this?
Regards
Anthony. |
|
| Back to top |
|
 |
Tsviatko Jongov Guest
|
Posted: Tue May 16, 2006 8:14 pm Post subject: Re: How to play three .mp3 in one application and choose one |
|
|
Hi,
You can do this using DirectShow. You can build DirectShow filter with
3 input pins
and one output pin. Your graph will have three source filters loaded
with mp3s, three mp3 decoders connected to the source filters and to
your new SWITCHER filter. The output pin of the SWITCHER filter will be
connected to Default DirectSound Device filter. So, the switcher filter
can perform stream switching at any time.
Also, you can perform this task by using directshow memory bridge
filters. Using these filters you will be able even to stop and reload a
new mp3 file in one of the channels, while the other two channels are
still playing. The idea of these filters is that every mp3 file can be
loaded and decoded in separate graph and the renderer graph will get
PCM data through the memory bridge and render it to the Default
DirectSound Device filter.
Regards,
Tsviatko Jongov
johngov at yahoo dot com |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|