summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-01-02 15:48:20 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-01-02 15:48:20 +0300
commit146cd2bc1cf6831cf5c99b7abb3de754eebf4a7b (patch)
tree85d8d8d598199070d9abfdd2a3d98ad644fc60fc
parent1f0f0b4a91432945526c29923f08a33d4d9505b3 (diff)
mumble: opus complexity, default ciphers
-rw-r--r--media-sound/mumble/files/higher_opus_complexity.patch12
-rw-r--r--media-sound/mumble/files/tls12_strong_ciphers.patch4
-rw-r--r--media-sound/mumble/mumble-scm.ebuild1
3 files changed, 15 insertions, 2 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);
diff --git a/media-sound/mumble/files/tls12_strong_ciphers.patch b/media-sound/mumble/files/tls12_strong_ciphers.patch
index 0a1adde..df40502 100644
--- a/media-sound/mumble/files/tls12_strong_ciphers.patch
+++ b/media-sound/mumble/files/tls12_strong_ciphers.patch
@@ -22,8 +22,8 @@ index 9c372569..fe1e5cdb 100644
QString MumbleSSL::defaultOpenSSLCipherString() {
- return QLatin1String("EECDH+AESGCM:EDH+aRSA+AESGCM:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:AES256-SHA:AES128-SHA");
-+ return QLatin1String("DHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-CHACHA20-POLY1305:DHE-RSA-CAMELLIA256-SHA256:\
-+DHE-RSA-AES128-GCM-SHA256:AES256-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256");
++ return QLatin1String("DHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-CAMELLIA256-SHA256:\
++DHE-RSA-AES128-GCM-SHA256:AES256-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256");
}
QList<QSslCipher> MumbleSSL::ciphersFromOpenSSLCipherString(QString cipherString) {
diff --git a/media-sound/mumble/mumble-scm.ebuild b/media-sound/mumble/mumble-scm.ebuild
index 81ebc89..216d456 100644
--- a/media-sound/mumble/mumble-scm.ebuild
+++ b/media-sound/mumble/mumble-scm.ebuild
@@ -54,6 +54,7 @@ DEPEND="${RDEPEND}
PATCHES=(
"${FILESDIR}"/gcc.patch
"${FILESDIR}"/tls12_strong_ciphers.patch
+ "${FILESDIR}"/higher_opus_complexity.patch
)
#S="${WORKDIR}/${MY_P}"