Re: AudioSession Route Strings
Re: AudioSession Route Strings
- Subject: Re: AudioSession Route Strings
- From: William Stewart <email@hidden>
- Date: Thu, 1 Jul 2010 16:49:08 -0700
Good point - lets see what we can do
Bill
On Jul 1, 2010, at 3:06 PM, Jim Heintz wrote:
> 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:
>>
>> 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
_______________________________________________
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