BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to play three .mp3 in one application and choose one of

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue May 16, 2006 3:14 pm    Post subject: How to play three .mp3 in one application and choose one of Reply with quote



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





PostPosted: Tue May 16, 2006 8:14 pm    Post subject: Re: How to play three .mp3 in one application and choose one Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.