summaryrefslogtreecommitdiff
path: root/packages/voip/mumble/files/higher_opus_complexity.patch
blob: 6a271efa0a6f1b5532048e8616bcf1cef295ba7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/mumble/AudioInput.cpp b/src/mumble/AudioInput.cpp
index 62f6244e..afb95568 100644
--- a/src/mumble/AudioInput.cpp
+++ b/src/mumble/AudioInput.cpp
@@ -95,6 +95,7 @@ AudioInput::AudioInput() : opusBuffer(g.s.iFramesPerPacket * (SAMPLE_RATE / 100)
 	}
 
 	opus_encoder_ctl(opusState, OPUS_SET_VBR(0)); // CBR
+	opus_encoder_ctl(opusState, OPUS_SET_COMPLEXITY(10)); //common, this should work just fine on high end gamer machine (and on low and too ...)
 #endif
 
 	qWarning("AudioInput: %d bits/s, %d hz, %d sample", iAudioQuality, iSampleRate, iFrameSize);