Re: Default output device changes - how to be notified?
Re: Default output device changes - how to be notified?
- Subject: Re: Default output device changes - how to be notified?
- From: William Stewart <email@hidden>
- Date: Mon, 21 May 2007 14:53:47 -0700
Add a listener for AudioHardware for the default device property.. If
you are using AUHAL, you can listen for changes to
kAudioOutputUnitProperty_CurrentDevice
Bill
On 20/05/2007, at 10:03 AM, Roni Music wrote:
Hi,
My player uses the default output device.
How can I be notified when a user changes the default output device
in the system preferences?
I've added a listener to check if a user removes a device (for
example unplugging a USB headset)
OSStatus err = AudioDeviceRemovePropertyListener(m_theOutputDevice,
kAudioPropertyWildcardChannel,
false,
kAudioDevicePropertyDeviceIsAlive,
MyListener);
which works OK.
But how do I "listen" to a device change?
Thanks,
Rolf
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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