I'm messing around with Audio Session Services. I'm trying to control the audio routes setting AudioSessionSetProperty:
kAudioSessionProperty_OverrideAudioRoute
as kAudioSessionOverrideAudioRoute_Speaker
.
The problem is that it changes the route both for input and output. What I want is to have input set from headset's mic, and output by speakers.
Any ideas?
Ty!
You can do this in iOS 5 with the properties:
For the possible values (what sources \ destinations are available on the device) use AudioSessionGetProperty with the properties:
For iOS 3.1+, I assume you're using the PlayAndRecord audio session category - you might want to try setting kAudioSessionProperty_OverrideCategoryDefaultToSpeaker to true. For instance,
Might not be exactly what you're looking for, but I don't think you can come closer in < iOS 5.