From f7bd6ac4d0a69d10ec7cc4d2b84851ee4ea32306 Mon Sep 17 00:00:00 2001 From: Edo Date: Wed, 29 Mar 2023 19:05:03 +0100 Subject: [PATCH] [Voice]: Update the buffer size (#883) --- src/Components/Modules/Voice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Voice.cpp b/src/Components/Modules/Voice.cpp index 296ff4a8..c14b0c34 100644 --- a/src/Components/Modules/Voice.cpp +++ b/src/Components/Modules/Voice.cpp @@ -41,14 +41,14 @@ namespace Components Game::msg_t msg{}; const auto clientNum = client - Game::svs_clients; - const auto msg_buf_large = std::make_unique(0x10000); + const auto msg_buf_large = std::make_unique(0x20000); auto* msg_buf = msg_buf_large.get(); assert(VoicePacketCount[clientNum] >= 0); if (client->header.state == Game::CS_ACTIVE && VoicePacketCount[clientNum]) { - Game::MSG_Init(&msg, msg_buf, 0x10000); + Game::MSG_Init(&msg, msg_buf, 0x20000); assert(msg.cursize == 0); assert(msg.bit == 0);