Re: SOLVED - Default output device changes - how to be notified?
Re: SOLVED - Default output device changes - how to be notified?
- Subject: Re: SOLVED - Default output device changes - how to be notified?
- From: Roni Music <email@hidden>
- Date: Mon, 21 May 2007 09:10:59 +0200
AudioHardwareAddPropertyListener
(kAudioHardwarePropertyDefaultOutputDevice, MyHardwareListener, this);
was what I was looking for
Rolf
> 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