Changing the audio session audio route (Speaker or none ) when using AVAudioPlayer
Changing the audio session audio route (Speaker or none ) when using AVAudioPlayer
- Subject: Changing the audio session audio route (Speaker or none ) when using AVAudioPlayer
- From: Inca Rose <email@hidden>
- Date: Mon, 23 Mar 2009 09:38:57 +0200
Hi;
AVAudioPlayer plays using the default route of the Audio Session.
What hapend if I want to re route the audio to another output like
the speakers ?
Can I call
audioRoute = kAudioSessionOverrideAudioRoute_Speaker;
AudioSessionSetProperty(kAudioSessionProperty_OverrideAudioRoute,
sizeof(audioRoute), &audioRoute);
Before calling [AVAudioPlayer play] ?
I think a new version of play ( or prepare to play ) with a new route
parameter will be
a good idea for next version.
Thanks
Inca R
_______________________________________________
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