• 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: Event for plug / unplug headphones?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Event for plug / unplug headphones?
      • From: Jeff Moore <email@hidden>
References: 
 >Event for plug / unplug headphones? (From: "David M. Cotter" <email@hidden>)

  • Prev by Date: Re: Event for plug / unplug headphones?
  • Next by Date: Re: Event for plug / unplug headphones?
  • Previous by thread: Re: Event for plug / unplug headphones?
  • Next by thread: Re: Event for plug / unplug headphones?
  • Index(es):
    • Date
    • Thread