• 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
AudioSession Route Strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioSession Route Strings


  • Subject: AudioSession Route Strings
  • From: Art Gillespie <email@hidden>
  • Date: Thu, 1 Jul 2010 14:48:15 -0700

So in testing I've seen these strings in the info dictionary parameter
for kAudioSessionProperty_AudioRouteChange's property listener (and in
kAudioSessionProperty_AudioRoute)

"Headphone"
"Speaker"

I can't find these defined in the headers[1], so I'm not sure if there
are any others. The documentation implies there may be a different
route when the user places the device in a cradle with audio out.

Is there a list of possible values somewhere? Is it safe to do
compares on these routes like

if oldRoute == "Headphone" and reason ==
kAudioSessionRouteChangeReason_OldDeviceUnavailable:
  //headset unplugged

regardless of the device's language settings?

[1] The comment in AudioServices.h for kAudioSessionProperty_Route
helpfully states:

                        "A CFStringRef with the name of the current
route ("Headphone," "Speaker," etc.)"
 _______________________________________________
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: AudioSession Route Strings
      • From: Jim Heintz <email@hidden>
  • Prev by Date: Re: ExtAudioFileWriteAsync- skip on write?
  • Next by Date: Re: ExtAudioFileWriteAsync- skip on write?
  • Previous by thread: Re: Playing in reverse
  • Next by thread: Re: AudioSession Route Strings
  • Index(es):
    • Date
    • Thread