mirror of
https://github.com/UberGames/ioef.git
synced 2025-05-31 01:11:01 +00:00
VoIP: initial shot at voice activation.
This commit is contained in:
parent
8028fc042c
commit
fec2cc2f05
4 changed files with 70 additions and 33 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue