Skip to content

Commit

Permalink
Enable voice-limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Feb 10, 2016
1 parent a5667b7 commit 41a2c97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions revoice/src/revoice_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ void SV_ParseVoiceData_emu(IGameClient* cl) {
switch (srcPlayer->GetCodecType()) {
case vct_silk:
{
//if (nDataLength > MAX_SILK_DATA_LEN || srcPlayer->GetVoiceRate() > MAX_SILK_VOICE_RATE)
// return;
if (nDataLength > MAX_SILK_DATA_LEN || srcPlayer->GetVoiceRate() > MAX_SILK_VOICE_RATE)
return;

silkData = chReceived; silkDataLen = nDataLength;
speexData = transcodedBuf;
Expand All @@ -95,8 +95,8 @@ void SV_ParseVoiceData_emu(IGameClient* cl) {
}

case vct_speex:
//if (nDataLength > MAX_SPEEX_DATA_LEN || srcPlayer->GetVoiceRate() > MAX_SPEEX_VOICE_RATE)
// return;
if (nDataLength > MAX_SPEEX_DATA_LEN || srcPlayer->GetVoiceRate() > MAX_SPEEX_VOICE_RATE)
return;

speexData = chReceived; speexDataLen = nDataLength;
silkData = transcodedBuf;
Expand Down
1 change: 1 addition & 0 deletions revoice/src/revoice_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ void CRevoicePlayer::OnConnected()
{
// already connected, suppose now there is a change of level?
if (m_Connected) {
m_VoiceRate = 0;
return;
}

Expand Down

0 comments on commit 41a2c97

Please sign in to comment.