Use the AudioDeviceManager to set a custom audio device to be used by the app. The audio device manages access to the audio capturing and rendering hardware.
You can only define a single audio capture source and rendering target for the entire process. You cannot set these individually for each publisher and subscriber.
Sets the audio device to be used.
+ (void)setAudioDevice:(_Nullable id<OTAudioDevice>)device
The OTAudioDevice interface implementation. This object is retained.
You must call this method before you connect to a session. Additionally, this is a global operation that must persist throughout the lifetime of a session.
If you do not call this method, the app uses the iOS device’s microphone and speaker.