Re: Device gone away notification?
Re: Device gone away notification?
- Subject: Re: Device gone away notification?
- From: Ethan Funk <email@hidden>
- Date: Tue, 8 Sep 2009 10:27:40 -0700
I am using kAudioUnitSubType_HALOutput. I was expecting my I/O Proc
would just stop getting called, which would be fine, but instead, the
device seems to get re-directed to the system default device. I will
have a look at some of the notifications mention and see which fits
best. I assume the notifications will come in on a realtime thread,
so I will need to make sure the handler does not block, correct?
Ethan...
On Sep 8, 2009, at 10:13 AM, Stephen Davis wrote:
If you are using kAudioUnitSubType_DefaultOutput, CoreAudio will
track the default device for you which sounds like the behavior
you're seeing. If you want to be tied to a particular device, you
use kAudioUnitSubType_HALOutput and tell it which device to use.
Off-hand, I'm not sure what happens when the device goes away but,
in the absence of any special handling by you, I suspect your I/O
proc will just stop getting called which is also what happens when
somebody else takes hog mode on the device you're using. I do not
know if it will come back but it should be pretty easy for you to
find out. As Brian said, you'll need to listen to notifications on
that device to find out when it goes away.
hth,
stephen
_______________________________________________
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
_______________________________________________
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