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: Philip Lukidis <email@hidden>
- Date: Sat, 10 Sep 2005 14:22:47 -0400
Hi Jeff, thanks for your answer. I take my kext has an architectural issue
then, since I can't know which channels in my stream are active. *sigh*
I had just begun to look at the issue of determining which streams are
active last Friday, and I was under the impression that all I had to do was
override the addClient and removeClient members of IOAudioStream. I guess
I'm missing the big picture. I'll look it over on Monday, since I'm away
from the code now.
thanks,
Philip Lukidis
-----Original Message-----
From: Jeff Moore
To: CoreAudio API
Sent: 09/09/2005 8:40 PM
Subject: Re: audio stream and active channels within said stream
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:
t.com
This email sent to email@hidden
_______________________________________________
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