How to send audio to iPhone loudspeaker instead of earspeaker?
Hi,
I'm new to TAAE. One of the problems I have on iPhone is that it automatically changes the audio output to the earspeaker. How can I send the audio to the loudspeaker? This doesn't happen on the iPad because there is no earspeaker.
Thanks in advance,
Regards,
Nuno
Comments
Strange - does this happen in the TAAE sample app for you, @sinosoidal?
Michael, didn't tried the sample. I have coded directly on my app. What should I look for? My initialisation code is like this:
NSLog(@Initializing DRCAppDelegate);
self.audioController = [[AEAudioController alloc] initWithAudioDescription:[AEAudioController nonInterleaved16BitStereoAudioDescription] inputEnabled:NO];
Thanks,
Regards,
Nuno
I see you're interacting directly with AVAudioSession - I'd remove that stuff, as TAAE handles this for you, and you may be interfering with it.
Michael,
It was that! Thanks!
Regards,
Nuno