IVSMicrophoneDelegate
Objective-C
@protocol IVSMicrophoneDelegate
Swift
protocol IVSMicrophoneDelegate
A delegate that provides updates about the attached microphone.
-
Invoked when the underlying input source providing audio samples to the microphone changes. This could be the result of a bluetooth headset being connected or disconnected, a wired headset being plugged in or unplugged, or any other audio device hardware change that might trigger a system route change. Always invoked on the main queue.
Declaration
Objective-C
- (void)underlyingInputSourceChangedForMicrophone: (nonnull id<IVSMicrophone>)microphone toInputSource: (nullable IVSDeviceDescriptor *) inputSource;
Swift
func underlyingInputSourceChanged(for microphone: IVSMicrophone, toInputSource inputSource: IVSDeviceDescriptor?)
Parameters
microphone
The microphone that had it’s underlying input source changed
inputSource
The new input source. If this is
nil
it means there is no available input source to record from. This might happen if the AVAudioSession gets deactivated. When this happens the SDK will wait for another input source to become available and switch to it when it can.