Thread View: borland.public.delphi.multimedia
12 messages
12 total messages
Started by HAROUCHE, David
Wed, 12 Mar 2008 14:19
Device already opened...
Author: HAROUCHE, David
Date: Wed, 12 Mar 2008 14:19
Date: Wed, 12 Mar 2008 14:19
14 lines
1318 bytes
1318 bytes
Yep I have two instances of TMediaPlayer opened at the same time.... m1.open; m1;play m2.open m2.play <----- there I got an error message : "Device already opened as an alias...." What to do ? DH
Re: Device already opened...
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Mar 2008 17:36
Date: Wed, 12 Mar 2008 17:36
10 lines
1159 bytes
1159 bytes
"HAROUCHE, David" <metanil@hotmail.com> wrote in message news:47d7e687$1@newsgroups.borland.com... > What to do ? Don't use multiple TMediaPlayer objects to talk to the same device. Gambit
Re: Device already opened...
Author: HAROUCHE, David
Date: Wed, 12 Mar 2008 18:03
Date: Wed, 12 Mar 2008 18:03
17 lines
1658 bytes
1658 bytes
I need to play overlaid sounds.... DH "Remy Lebeau (TeamB)" <no.spam@no.spam.com> a �crit dans le message de groupe de discussion : 47d81494$2@newsgroups.borland.com... > > "HAROUCHE, David" <metanil@hotmail.com> wrote in message > news:47d7e687$1@newsgroups.borland.com... > >> What to do ? > > Don't use multiple TMediaPlayer objects to talk to the same device. > > > Gambit >
Re: Device already opened...
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Mar 2008 19:36
Date: Wed, 12 Mar 2008 19:36
12 lines
1383 bytes
1383 bytes
"HAROUCHE, David" <metanil@hotmail.com> wrote in message news:47d81b00$1@newsgroups.borland.com... > I need to play overlaid sounds.... You can't do that with TMediaPlayer. You will have to communicate with the source card directly instead. If you don't want to do that manually, then use DirectX (specifically, DirectSound) to manage it for you. Gambit
Re: Device already opened...
Author: HAROUCHE, David
Date: Wed, 12 Mar 2008 21:17
Date: Wed, 12 Mar 2008 21:17
33 lines
2288 bytes
2288 bytes
Bloody Hell. There must be a solution.... What I really succeed to do is to play an MP3 on a TMediaPlayer, and some WAV on others TMediaPlayer...Overlapping is not the problem.... What I can't do is to correctly name at runtime (because I have to call InsertControl for all new Instances of TMediaPlayer)... For now, I use an Application level unique name algorythm, but it seems that's not enough... I work on it ! DH I swear I have heard Madonna.mp3 and played some radar echo over it using 2 TMediaplayer opened on autoselect at the same time...! DH "Remy Lebeau (TeamB)" <no.spam@no.spam.com> a �crit dans le message de groupe de discussion : 47d833d1$1@newsgroups.borland.com... > > "HAROUCHE, David" <metanil@hotmail.com> wrote in message > news:47d81b00$1@newsgroups.borland.com... > >> I need to play overlaid sounds.... > > You can't do that with TMediaPlayer. You will have to communicate with > the source card directly instead. If you don't want to do that manually, > then use DirectX (specifically, DirectSound) to manage it for you. > > > Gambit >
Re: Device already opened...
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Mar 2008 21:42
Date: Wed, 12 Mar 2008 21:42
20 lines
1651 bytes
1651 bytes
"HAROUCHE, David" <metanil@hotmail.com> wrote in message news:47d84860@newsgroups.borland.com... > Bloody Hell. There must be a solution.... The OS does not expose APIs to easily merge multiple sources together on a single device. DirectX does, though. > What I can't do is to correctly name at runtime (because I have > to call InsertControl for all new Instances of TMediaPlayer)... You should not be calling InsertControl() directly. Use the Parent property instead. Why are you trying to name anything in the first place? Dynamic instances do not need Names assigned to them. Gambit
Re: Device already opened...
Author: HAROUCHE, David
Date: Wed, 12 Mar 2008 21:46
Date: Wed, 12 Mar 2008 21:46
7 lines
1308 bytes
1308 bytes
>> DirectX I dont want to go to DirectSound... That's a choice ! >>naming....not necessary I'll try.... DH
Re: Device already opened...
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Mar 2008 22:57
Date: Wed, 12 Mar 2008 22:57
11 lines
1426 bytes
1426 bytes
"HAROUCHE, David" <metanil@hotmail.com> wrote in message news:47d84f3c@newsgroups.borland.com... > I dont want to go to DirectSound... That's a choice ! Then you are just going to have to mix the audio data yourself using the waveOut...() API functions. Gambit
Re: Device already opened...
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Mar 2008 23:00
Date: Wed, 12 Mar 2008 23:00
12 lines
1498 bytes
1498 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:47d85fea$1@newsgroups.borland.com... > Then you are just going to have to mix the audio data yourself > using the waveOut...() API functions. Unless you use a third-party component that supports mixing of multiple sources. Gambit
Re: Device already opened...
Author: HAROUCHE, David
Date: Wed, 12 Mar 2008 23:20
Date: Wed, 12 Mar 2008 23:20
9 lines
1124 bytes
1124 bytes
OK ! I get it ! Playing wave and mp3 are relevant of different audio sources ...? Correct ? DH
Re: Device already opened...
Author: Mike Warren
Date: Thu, 13 Mar 2008 00:36
Date: Thu, 13 Mar 2008 00:36
14 lines
1479 bytes
1479 bytes
HAROUCHE, David wrote: > > > DirectX > I dont want to go to DirectSound... That's a choice ! Is this because of the complexity? If so, there is a component on Torry called DSMixer that is very easy to use and does multiple sounds, amongst other things. http://www.torry.net/quicksearchd.php?String=dsmixer&Title=Yes -- -Mike
Re: Device already opened...
Author: HAROUCHE, David
Date: Thu, 13 Mar 2008 00:59
Date: Thu, 13 Mar 2008 00:59
3 lines
1454 bytes
1454 bytes
Personal choice ! DH
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads