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

Is it possible to control multiple sound cards?

3 views
Skip to first unread message

Cafetorium

unread,
Dec 11, 2009, 10:10:33 AM12/11/09
to
I need to set up a PC with 2 sound cards in it. The first is used to
drive desktop speakers or headphones. The second is used to drive an
underwater speaker to communicate with divers.

The audio being sent to each sound card is different, so I want to be
able to address them separately.

Assuming that the sound cards are installed, and have their relevant
drivers, is it possible to get the TMediaPlayer component to output to
a specific device?
I guessing here, but I imagine I'd have to enumerate the available
devices and get handles to them, and somehow tell each TMediaPlayer to
output to a specific device.
Maybe through the DeviceID property? The help isn't very helpful in
that area.

Alternatively, would it be better to forget the TMediaPlayer and use
the Windows API multimedia calls directly?

Phil Rogers

alang...@aol.com

unread,
Dec 15, 2009, 5:55:01 AM12/15/09
to
On 11 Dec, 15:10, Cafetorium <p...@cafetorium.co.uk> wrote:
> I need to set up a PC with 2 sound cards in it. �The first is used to
> drive desktop speakers or headphones. �The second is used to drive an
> underwater speaker to communicate with divers.
>
<snip>

> Alternatively, would it be better to forget the TMediaPlayer and use
> the Windows API multimedia calls directly?
>

AFAICS you would need to go for Win API calls. Look up "Mixers" - I
would imagine each sound card would have its own mixer.

An old article on "Mixing it up with the Mixer" by Steve Roman. I have
a copy plus a small app to enumerate the mixers & their sources (in
Delphi), which may help you - email me if you want a copie & source.

Alan Lloyd

0 new messages