iPhone / iPod Touch kAudioSessionProperty_OverrideAudioRoute Issue
iPhone / iPod Touch kAudioSessionProperty_OverrideAudioRoute Issue
- Subject: iPhone / iPod Touch kAudioSessionProperty_OverrideAudioRoute Issue
- From: Mark Cooke <email@hidden>
- Date: Fri, 22 May 2009 08:54:42 +0900
Hello, I'm working on an application that has these audio characteristics:
Plays application sounds.
Records from a mic if present and plays the mic stream back out the speakers with as low latency as I can get.
Users can use the Apple AV Cable to route the audio to their television / stereo.
The problem I am having is when a user is using an iPod Touch 2G, for example, and plugs in a headphone/microphone combo. By default the audio route switches to all output to the headphones and that does work as expected though in my case is not desired.
What I want to happen is to leave the sound being played by the application routed to the speaker or, if it is plugged in, the AV Cable. The latter is the problem.
I can write to the property kAudioSessionProperty_OverrideAudioRoute with the value kAudioSessionOverrideAudioRoute_Speaker which does in fact make audio come out of the iPod Touch's internal speaker even after the headphone / mic cable is connected. It does not allow any audio to come out of the AV Cable though.
My question is then is there any way to override the audio route so that audio is sent to the AV Cable?
Here is the sequence of events for clarification:
iPod Touch is plugged into my TV for audio.
Application starts, audio is routed through the TV as desired via the AV Cable.
Headphone / mic package (like the one that comes with the iPhone) is plugged in to the iPod Touch.
Audio is routed into the headphones.
If kAudioSessionOverrideAudioRoute_Speaker is used, audio comes out of both the headphones and the iPod Touch internal speaker.
If the headphone / mic is disconnected, audio still will not route through the AV Cable.
--
Mark Cooke
http://www.gmixer.com
_______________________________________________
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