Re: HAL Devices and Streams (with QuickTime)
Re: HAL Devices and Streams (with QuickTime)
- Subject: Re: HAL Devices and Streams (with QuickTime)
- From: Lieven Dekeyser <email@hidden>
- Date: Fri, 18 Jan 2002 22:09:41 +0100 (CET)
>
1) MediaSetSoundOutputComponent takes a Component not a ComponentInstance or
>
AudioDeviceID.
>
>
2) the HAL sdev does have an Get/SetInfo selector to change what
>
AudioDeviceID it is using. It is, unsurprisingly, siHALAudioDeviceID.
>
>
But, and this goes back to what I was trying to get at when I talked about
>
the Sound Manager's architecture getting in the way, the Sound Manager will
>
use the same sdev for all the tracks in a QTMovie without being pointed at a
>
wholly different sdev Component using MediaSetSoundOutputComponent.
>
>
To make matters worse, the Sound Manager has to be the one to open and
>
configure the sdev. It won't accept a ComponentInstance that you've already
>
opened and configured for the job. And if you pass in a Component of which
>
the Sound Manager already has an open instance of, it will recycle that
>
instance and not open a new instance.
If you know exactly how many output devices your app will need, for
instance 2, (like for my app: main output & monitor) a quick & dirty
solution would be to install 2 Components in the OS which are exact copies
of the HAL Output Component except for their id (componentSubType,
componentManufacturer), right? this way, the Soundmanager would look at
them as 2 different Components (not just 2 different instances of the
same Component), and you would be able to use both... but I guess there's
no way of copying the HAL Output Component, is there?
--Lieven