Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/client/StarClientApplication.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-02 14:43:49 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-02 14:43:49 +1000
commit856e93be3f1a443db2679ad7db9f6890a9b4d936 (patch)
tree196336b2f821b8c4b07d1c15925978cec5700bff /source/client/StarClientApplication.cpp
parentb318e981e3f454941d3de07a018adb485238fbb9 (diff)
Skip packet compression on Voice packets
cause 99% of the data is already compressed by Opus
Diffstat (limited to 'source/client/StarClientApplication.cpp')
-rw-r--r--source/client/StarClientApplication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp
index efbdcad..9213d0e 100644
--- a/source/client/StarClientApplication.cpp
+++ b/source/client/StarClientApplication.cpp
@@ -921,7 +921,7 @@ void ClientApplication::updateRunning(float dt) {
std::string_view signatureView((char*)signature.data(), signature.size());
std::string_view audioDataView(voiceData.ptr(), voiceData.size());
auto broadcast = strf("data\0voice\0{}{}"s, signatureView, audioDataView);
- worldClient->sendSecretBroadcast(broadcast, true);
+ worldClient->sendSecretBroadcast(broadcast, true, false); // Already compressed by Opus.
}
if (auto mainPlayer = m_universeClient->mainPlayer()) {
auto localSpeaker = m_voice->localSpeaker();