Re: Event for plug / unplug headphones?
Re: Event for plug / unplug headphones?
- Subject: Re: Event for plug / unplug headphones?
- From: Jeff Moore <email@hidden>
- Date: Fri, 15 Sep 2006 16:03:30 -0700
That implies that the device in question doesn't support a jack
control, which isn't at all unusual.
On Sep 15, 2006, at 3:55 PM, David M. Cotter wrote:
i did this:
UInt32 dataSize = sizeof(AudioDeviceID);
i_outDeviceID = kAudioDeviceUnknown;
ERR
(AudioHardwareGetProperty(kAudioHardwarePropertyDefaultOutputDevice,
&dataSize, (void *)&i_outDeviceID));
ERR(AudioDeviceAddPropertyListener(
i_outDeviceID,
kAudioPropertyWildcardChannel,
false,
kAudioDevicePropertyJackIsConnected,
JackPlugged,
this));
and it returns no error, but my function is not called?
--
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