• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AudioDeviceAddPropertyListener adn the headphone jack
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >AudioDeviceAddPropertyListener adn the headphone jack (From: "Ryan Harter" <email@hidden>)

  • Prev by Date: Re: Partial automation, how to ?
  • Next by Date: Help needed for Audio Unit Parameter Change Notification
  • Previous by thread: AudioDeviceAddPropertyListener adn the headphone jack
  • Next by thread: Partial automation, how to ?
  • Index(es):
    • Date
    • Thread