VoIP: initial shot at voice activation.
This commit is contained in:
1 parent
8028fc042c
commit
fec2cc2f05
4 files changed
+70
-33
No files matched your search
@@ -937,6 +937,10 @@ void CL_FirstSnapshot( void ) {
|
||||
speex_preprocess_ctl(clc.speexPreprocessor,
|
||||
SPEEX_PREPROCESS_SET_DENOISE, &i);
|
||||
|
||||
i = (cl_voipUseVAD->integer != 0);
|
||||
speex_preprocess_ctl(clc.speexPreprocessor,
|
||||
SPEEX_PREPROCESS_SET_VAD, &i);
|
||||
|
||||
for (i = 0; i < MAX_CLIENTS; i++) {
|
||||
speex_bits_init(&clc.speexDecoderBits[i]);
|
||||
speex_bits_reset(&clc.speexDecoderBits[i]);
|
||||
|
||||
Reference in new issue
Block a user