Re: Question about Hog Mode
Re: Question about Hog Mode
- Subject: Re: Question about Hog Mode
- From: Jeff Moore <email@hidden>
- Date: Sat, 09 Jan 2010 11:39:51 -0800
On Jan 9, 2010, at 9:04 AM, Stephen F. Booth wrote:
> I've been experimenting with hog mode lately and although I'm able to
> take and release it, I'm not getting the results I expect. I think I
> may have a fundamental misunderstanding of what hog mode is or how it
> works.
>
> My goal is to prevent sample rate changes on the output device from
> any other app except my own when I am actively playing audio. I was
> under the impression that I could achieve this with hog mode.
>
> My setup is fairly simple- a vanilla AUGraph with a few AudioUnits for
> DSP, using an output AU for rendering. I use a custom input callback
> to feed the graph.
>
> When I take hog mode, all audio output stops. My input callback is
> still called, and my render notifications are called, so it looks like
> audio is rendering. However, nothing comes from the device.
>
> What am I missing? I've read and searched, but to no avail.
When the hog mode state changes, the HAL stops IO. This I know for sure and you can see this yourself using HALLab.
I'm less sure about what AUHAL does in this circumstance. But, I'm pretty sure that AUHAL will not restart IO when this happens without your intervention. As to what may be still calling your input callback and render notifications, I can't really say other than they aren't being driven by the HAL at that point.
--
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