I understand that this question might get a bad rating, but I've been looking at questions which ask how to reroute audio output to the loud speaker on iOS devices.
Every question I looked at the user talked about using your AVAudioSession
to reroute it.. However, I'm not using AVAudioSession
, I'm using an AVAudioEngine
.
So basically my question is, even though I'm using an AVAudioEngine
, should I still have an AVAudioSession
?
If so, what is the relationship between these two objects? Or is there a way to connect an AVAudioEngine
to an AVAudioSession
?
If this is not the case, and there is no relation between an AVAudioEngine
and an AVAudioSession
, than how do you reroute audio so that it plays out of the main speakers on an iOS device rather than the earpiece.
Thank you!