diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2010-07-17 21:52:49 +0400 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2010-07-17 21:52:49 +0400 |
commit | 1b3d3290a1c10e268bcad3c3781c3e19c8599e91 (patch) | |
tree | 22b58a5150512f3187587882125a82ba5edc68bc /src | |
parent | 8bd79b6c997cae6e708660229c9808c163890dc7 (diff) |
Fix AudioStats for compat client.
Diffstat (limited to 'src')
-rw-r--r-- | src/mumble/AudioStats.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mumble/AudioStats.cpp b/src/mumble/AudioStats.cpp index 91f3a255b..860fca932 100644 --- a/src/mumble/AudioStats.cpp +++ b/src/mumble/AudioStats.cpp @@ -411,7 +411,11 @@ void AudioStats::on_Tick_timeout() { abSpeech->iAbove = iroundf(g.s.fVADmax * 32767.0f); if (g.s.vsVAD == Settings::Amplitude) { +#ifndef COMPAT_CLIENT abSpeech->iValue = iroundf((32767.f/96.0f) * (96.0f + ai->dPeakCleanMic)); +#else + abSpeech->iValue = iroundf((32767.f/96.0f) * (96.0f + ai->dPeakMic)); +#endif } else { abSpeech->iValue = iroundf(ai->fSpeechProb * 32767.0f); } |