Re: Event for plug / unplug headphones?
Re: Event for plug / unplug headphones?
- Subject: Re: Event for plug / unplug headphones?
- From: "David M. Cotter" <email@hidden>
- Date: Fri, 15 Sep 2006 15:55:37 -0700
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?
|
_______________________________________________
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