AVAudioRecorder & AVAudioPlayer - Sound output on internal speaker, how to change?
<p>i have a problem with AVAudioRecorder and AVAudioPlayer.</p>

<p>when i use Player and Record at the same time (eg. for playing sound while recording) the sound is in the quiet internal Speaker. i searched stackoverflow and all i found was this code:</p>

<pre><code>UInt32 *audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker;
AudioSessionSetProperty (kAudioSessionProperty_OverrideAudioRoute,sizeof (audioRouteOverride),&amp;audioRouteOverride);
</code></pre>

<p>But this doesn't help me :(
When i copyPaste it, i got errors.
What can i do to record and play the loud Speaker at the bottom?</p>

<p>I don't use anything like SCLister oder something...</p>

<p>Thanks in advance</p>

<p>Max</p>
