Re: AudioSession Route Strings
Re: AudioSession Route Strings
- Subject: Re: AudioSession Route Strings
- From: Jim Heintz <email@hidden>
- Date: Thu, 1 Jul 2010 15:06:00 -0700
It has been a while since I looked at this stuff, but I recall seeing
a number of additional strings for AudioRoute during testing such as
"HeadsetInOut", HeadsetAndMicrophone", "ReceiverAndMicrophone",
"LineOut", etc... It would be quite helpful to see a definitive
list, and a corresponding set of definitions.
On Jul 1, 2010, at 2:48 PM, Art Gillespie wrote:
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:
40wayoutware.com
This email sent to email@hidden
_______________________________________________
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