added voice chat menu, added udp transport, audio cleanup

This commit is contained in:
haxi0
2026-03-10 23:27:52 +03:00
parent 85b0f070b9
commit f4116519fe
25 changed files with 1395 additions and 234 deletions
+1 -1
View File
@@ -1813,6 +1813,6 @@ void PlayerConnection::handleVoiceChat(VoiceChatPacket *packet)
// Broadcast to all connected players (including the sender's client, which will filter itself)
auto sharedPacket = std::make_shared<VoiceChatPacket>(
packet->senderPlayerId, packet->audioData, packet->dataLength);
packet->senderPlayerId, packet->sequence, packet->audioData, packet->dataLength);
server->getPlayers()->broadcastAll(sharedPacket);
}