mirror of
https://github.com/rehlds/revoice.git
synced 2025-03-03 17:15:25 +03:00
Enable voice-limiter
This commit is contained in:
parent
a5667b7dbc
commit
41a2c97eba
@ -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;
|
||||
@ -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;
|
||||
|
@ -23,6 +23,7 @@ void CRevoicePlayer::OnConnected()
|
||||
{
|
||||
// already connected, suppose now there is a change of level?
|
||||
if (m_Connected) {
|
||||
m_VoiceRate = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user