Re: audio stream and active channels within said stream
Re: audio stream and active channels within said stream
- Subject: Re: audio stream and active channels within said stream
- From: Jeff Moore <email@hidden>
- Date: Fri, 9 Sep 2005 17:40:28 -0700
You can't know which individual channels are in use on a given multi-
channel stream. You can only know which streams are in use.
BTW, finding out which streams are in use should be a matter of just
looking at the buffer sets in the user client object for the engine.
The HAL won't register buffers for streams the process has disabled.
Note that to get access to the buffer set objects in the user-client
object, you have to sub-class the user-client object. I don't think
you have to actually override any methods in the user-client class,
just add a method or two that provides access to the buffer set list.
You also have to over-ride the user-client factory methods in
IOAudioEngine to be sure your user-client object gets used.
Finally, don't forget that there is a user-client object for each
process and you have to examine the buffer sets in all of them to be
sure that a given stream is not currently in used.
On Sep 9, 2005, at 2:41 PM, Philip Lukidis wrote:
Hi. In my audio kext, assuming that I find a way to know which
streams are
active (hopefully by overriding the registering of buffers), how am
I to
know how many channels in the activated stream are active? Is
there a way
to do this? So far I have not seen this in the source.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden