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 /src/murmur
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
Diffstat (limited to 'src/murmur')
-rw-r--r--src/murmur/Meta.cpp11
1 files changed, 7 insertions, 4 deletions
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;