• 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: SOLVED - Default output device changes - how to be notified?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SOLVED - Default output device changes - how to be notified?


  • Subject: Re: SOLVED - Default output device changes - how to be notified?
  • From: Roni Music <email@hidden>
  • Date: Mon, 21 May 2007 09:10:59 +0200


AudioHardwareAddPropertyListener (kAudioHardwarePropertyDefaultOutputDevice, MyHardwareListener, this);


was what I was looking for

Rolf



> Hi,
>
> My player uses the default output device.
>
> How can I be notified when a user changes the default output device
> in the system preferences?
>
> I've added a listener to check if a user removes a device (for
> example unplugging a USB headset)
>
> OSStatus err = AudioDeviceRemovePropertyListener(m_theOutputDevice,
> kAudioPropertyWildcardChannel,
> false,
> kAudioDevicePropertyDeviceIsAlive,
> MyListener);
>
> which works OK.
>
> But how do I "listen" to a device change?
>
> Thanks,
> Rolf
>
>


_______________________________________________
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


  • Prev by Date: Re: Can you put multiple sysex messages into one large buffer, and use MIDISend()?
  • Next by Date: S/PDIF audio output
  • Previous by thread: Re: Can you put multiple sysex messages into one large buffer, and use MIDISend()?
  • Next by thread: S/PDIF audio output
  • Index(es):
    • Date
    • Thread