I'm trying to figure out how to get audio to play both the front speaker and the lower speaker in tandem using AVAudioSession and AVAudioSessionCategoryMultiRoute on iOS.
I really don't mind if the solution is a hack, I know that this should be possible (even using a private API), so any method that brings me closer to pseudo-stereo audio will be a big help.
Just point this out for educational purposes, so you donβt have to worry about it being rejected.
NSError *error = nil; [session setCategory:AVAudioSessionCategoryMultiRoute error:&error]; AVAudioSession *session = [AVAudioSession sharedInstance]; [session setCategory:AVAudioSessionCategoryPlayAndRecord error:&error]; [session overrideOutputAudioPort:AVAudioSessionPortOverrideSpeaker error:&error];
That's where I am with my investigation, additional suggestions may include several AVAudioSessions that are synchronized or something even more exotic.
source share