Re: AudioDeviceAddPropertyListener adn the headphone jack
Re: AudioDeviceAddPropertyListener adn the headphone jack
- Subject: Re: AudioDeviceAddPropertyListener adn the headphone jack
- From: Jeff Moore <email@hidden>
- Date: Wed, 24 Oct 2007 14:08:52 -0700
You might want to look at the HALLab sample code. It has a GUI element
for basically all the various control properties in the HAL. You'll be
looking for how it handles the property,
kAudioDevicePropertyJackIsConnected.
On Oct 23, 2007, at 4:02 PM, Ryan Harter wrote:
Can anyone briefly explain to me how to use
"AudioDeviceAddPropertyListener" please to listen for a state change
in the headphone jack. I am a cocoa programmer new to CoreAudio and
the documentation is still a bit cryptic to me.
I'm working on a program to simply mute the sound if there is not
something plugged into the headphone jack. This is for a computer
lab setting so users can't play music that disturbs others.
--
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