AudioSession Route Strings
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