diff --git a/revoice/src/SteamP2PCodec.cpp b/revoice/src/SteamP2PCodec.cpp index de5fd81..b1cc45f 100644 --- a/revoice/src/SteamP2PCodec.cpp +++ b/revoice/src/SteamP2PCodec.cpp @@ -72,7 +72,7 @@ int CSteamP2PCodec::StreamDecode(const char *pCompressed, int compressedBytes, c // Invalid or unknown opcode default: - LCPrintf(true, "CSteamP2PCodec::StreamDecode() called on client(%d) with unknown voice codec opcode (%d)\n", m_Client->GetId(), opcode); + // LCPrintf(true, "CSteamP2PCodec::StreamDecode() called on client(%d) with unknown voice codec opcode (%d)\n", m_Client->GetId(), opcode); return 0; } } diff --git a/revoice/src/revoice_main.cpp b/revoice/src/revoice_main.cpp index 22f30cd..ac36a98 100644 --- a/revoice/src/revoice_main.cpp +++ b/revoice/src/revoice_main.cpp @@ -80,11 +80,9 @@ void SV_ParseVoiceData_emu(IGameClient *cl) char transcodedBuf[4096]; - char *opusData = nullptr; char *silkData = nullptr; char *speexData = nullptr; - int opusDataLen = 0; int silkDataLen = 0; int speexDataLen = 0; @@ -105,9 +103,9 @@ void SV_ParseVoiceData_emu(IGameClient *cl) if (nDataLength > MAX_OPUS_DATA_LEN || srcPlayer->GetVoiceRate() > MAX_OPUS_VOICE_RATE) return; - opusData = chReceived; opusDataLen = nDataLength; + silkData = chReceived; silkDataLen = nDataLength; speexData = transcodedBuf; - speexDataLen = TranscodeVoice(srcPlayer, opusData, opusDataLen, srcPlayer->GetOpusCodec(), srcPlayer->GetSpeexCodec(), transcodedBuf, sizeof(transcodedBuf)); + speexDataLen = TranscodeVoice(srcPlayer, silkData, silkDataLen, srcPlayer->GetOpusCodec(), srcPlayer->GetSpeexCodec(), transcodedBuf, sizeof(transcodedBuf)); break; } case vct_speex: