• 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
Listener for when stream formats change (Leopard)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Listener for when stream formats change (Leopard)


  • Subject: Listener for when stream formats change (Leopard)
  • From: Tim Hewett <email@hidden>
  • Date: Wed, 22 May 2013 02:33:45 +0100

I have software which needs a listener to be called when a device's stream formats change, e.g. when a data source changes. Adding a listener on the stream for kAudioStreamPropertyAvailablePhysicalFormats works fine under Mountain Lion but not Leopard or Snow Leopard (not tested under Lion) - it never gets called. HALLab behaves in the same way.

I have tried adding a listener on the device for kAudioDevicePropertyStreamFormats (scope: global, element: first channel of stream), again the listener is never called.

I am wondering if there is there a more reliable way to be notified of a change to the stream formats. Listening for kAudioDevicePropertyDeviceHasChanged seems to be an option, but this can be called for multiple reasons and it would be necessary to cache the stream's current available formats to determine whether or not the reason for being called is that the stream's formats have changed.

Tim.
 _______________________________________________
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: Listener for when stream formats change (Leopard)
      • From: Dave Fernandes <email@hidden>
  • Prev by Date: Re: iOS mic input latency
  • Next by Date: Re: Listener for when stream formats change (Leopard)
  • Previous by thread: Re: iOS mic input latency
  • Next by thread: Re: Listener for when stream formats change (Leopard)
  • Index(es):
    • Date
    • Thread