From fd239c58a88b1567cf85abb96e7b81748e43349e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 8 Jun 2008 07:09:45 +0000 Subject: [PATCH] VoIP: Enable Automatic Gain Control. --- code/client/cl_cgame.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c index 18a96308..12c1171e 100644 --- a/code/client/cl_cgame.c +++ b/code/client/cl_cgame.c @@ -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]);