Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-01-18 14:16:22 +0300
committerGitHub <noreply@github.com>2021-01-18 14:16:22 +0300
commit4b36f0f9a7892d03fbac4f40f4862cfb3ab46504 (patch)
treefe13a0838dfa1895d7d857ebaff7e7b9a465b410
parent1455b3969879516d8b0865efec742a0b8b9f4bd0 (diff)
parent99ea9d7835b823329c87ebd13dbfee6868f51a55 (diff)
Merge pull request #4700: FIX(server): Make max bandwidth the highest supported
558000 = 510000 (Opus) + 9600 (position) + 38400 (TCP overhead) Closes #3895
-rw-r--r--scripts/murmur.ini2
-rw-r--r--src/murmur/Meta.cpp11
2 files changed, 8 insertions, 5 deletions
diff --git a/scripts/murmur.ini b/scripts/murmur.ini
index 91c671697..de224847b 100644
--- a/scripts/murmur.ini
+++ b/scripts/murmur.ini
@@ -133,7 +133,7 @@ serverpassword=
; Maximum bandwidth (in bits per second) clients are allowed
; to send speech at.
-bandwidth=72000
+bandwidth=558000
; Murmur and Mumble are usually pretty good about cleaning up hung clients, but
; occasionally one will get stuck on the server. The timeout setting will cause
diff --git a/src/murmur/Meta.cpp b/src/murmur/Meta.cpp
index a1d30c7a3..a87044a1e 100644
--- a/src/murmur/Meta.cpp
+++ b/src/murmur/Meta.cpp
@@ -47,10 +47,13 @@ HANDLE Meta::hQoS = nullptr;
#endif
MetaParams::MetaParams() {
- qsPassword = QString();
- usPort = DEFAULT_MUMBLE_PORT;
- iTimeout = 30;
- iMaxBandwidth = 72000;
+ qsPassword = QString();
+ usPort = DEFAULT_MUMBLE_PORT;
+ iTimeout = 30;
+ // This represents the maximum possible bandwidth using 10 ms audio TCP packets with position data
+ // (restricted by the maximum bitrate Opus supports)
+ // 558000 = 510000 (Opus) + 9600 (position) + 38400 (TCP overhead)
+ iMaxBandwidth = 558000;
iMaxUsers = 1000;
iMaxUsersPerChannel = 0;
iMaxListenersPerChannel = -1;