[Voice]: Update the buffer size (#883)

This commit is contained in:
Edo 2023-03-29 19:05:03 +01:00 committed by GitHub
parent dfe92ef2bc
commit f7bd6ac4d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,14 +41,14 @@ namespace Components
Game::msg_t msg{}; Game::msg_t msg{};
const auto clientNum = client - Game::svs_clients; const auto clientNum = client - Game::svs_clients;
const auto msg_buf_large = std::make_unique<unsigned char[]>(0x10000); const auto msg_buf_large = std::make_unique<unsigned char[]>(0x20000);
auto* msg_buf = msg_buf_large.get(); auto* msg_buf = msg_buf_large.get();
assert(VoicePacketCount[clientNum] >= 0); assert(VoicePacketCount[clientNum] >= 0);
if (client->header.state == Game::CS_ACTIVE && VoicePacketCount[clientNum]) 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.cursize == 0);
assert(msg.bit == 0); assert(msg.bit == 0);