public void StartSendingAudio(int sampleRate) { if (_currentMic == null) { Debug.Log("Not sending audio, no current mic"); return; } Debug.Log("Starting to send audio"); SendAudioClip = Microphone.Start(_currentMic, true, NumRecordingSeconds, sampleRate); _previousPosition = 0; _numTimesLooped = 0; _totalNumSamplesSent = 0; _sampleNumberOfLastMinAmplitudeVoice = int.MinValue; isRecording = true; _mumbleClient.SetSelfMute(false); }