VoIP: Enable Automatic Gain Control.

This commit is contained in:
Ryan C. Gordon 2008-06-08 07:09:45 +00:00
parent d4ee08b985
commit fd239c58a8
1 changed files with 4 additions and 0 deletions

View File

@ -937,6 +937,10 @@ void CL_FirstSnapshot( void ) {
speex_preprocess_ctl(clc.speexPreprocessor,
SPEEX_PREPROCESS_SET_DENOISE, &i);
i = 1;
speex_preprocess_ctl(clc.speexPreprocessor,
SPEEX_PREPROCESS_SET_AGC, &i);
for (i = 0; i < MAX_CLIENTS; i++) {
speex_bits_init(&clc.speexDecoderBits[i]);
speex_bits_reset(&clc.speexDecoderBits[i]);