/// <summary> /// Sets the mute state of the microphone. /// </summary> /// <param name="mute">The microphone mute state.</param> private void InternalSetMicMute(bool mute) { try { MLResult.Code result = NativeBindings.MLAudioSetMicMute(mute); if (result != MLResult.Code.Ok) { MLPluginLog.ErrorFormat("MLAudio.InternalSetMicMute failed to set the value. Reason: {0}", result); } Instance.isMicrophoneMuted = mute; } catch (System.DllNotFoundException) { MLPluginLog.Error(this.DllNotFoundError); throw; } }