summaryrefslogtreecommitdiff
path: root/media-sound/mumble/files/higher_opus_complexity.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/mumble/files/higher_opus_complexity.patch')
-rw-r--r--media-sound/mumble/files/higher_opus_complexity.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/media-sound/mumble/files/higher_opus_complexity.patch b/media-sound/mumble/files/higher_opus_complexity.patch
new file mode 100644
index 0000000..6a271ef
--- /dev/null
+++ b/media-sound/mumble/files/higher_opus_complexity.patch
@@ -0,0 +1,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);