- Timestamp:
- Feb 11, 2015 5:10:06 AM (10 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/config.h
r4875 r4981 637 637 638 638 /** 639 * Specify whether Automatic Gain Control (AGC) should also be enabled in 640 * Speex AEC. 641 * 642 * Default: 1 (yes) 643 */ 644 #ifndef PJMEDIA_SPEEX_AEC_USE_AGC 645 # define PJMEDIA_SPEEX_AEC_USE_AGC 1 646 #endif 647 648 649 /** 650 * Specify whether denoise should also be enabled in Speex AEC. 651 * 652 * Default: 1 (yes) 653 */ 654 #ifndef PJMEDIA_SPEEX_AEC_USE_DENOISE 655 # define PJMEDIA_SPEEX_AEC_USE_DENOISE 1 656 #endif 657 658 659 /** 639 660 * Maximum number of parameters in SDP fmtp attribute. 640 661 * -
pjproject/trunk/pjmedia/src/pjmedia/echo_speex.c
r4622 r4981 110 110 #endif 111 111 112 /* Enable AGC*/112 /* Enable/disable AGC & denoise */ 113 113 { 114 spx_int32_t enabled = 1; 114 spx_int32_t enabled; 115 116 enabled = PJMEDIA_SPEEX_AEC_USE_AGC; 115 117 speex_preprocess_ctl(echo->preprocess, SPEEX_PREPROCESS_SET_AGC, 118 &enabled); 119 120 enabled = PJMEDIA_SPEEX_AEC_USE_DENOISE; 121 speex_preprocess_ctl(echo->preprocess, SPEEX_PREPROCESS_SET_DENOISE, 116 122 &enabled); 117 123 }
Note: See TracChangeset
for help on using the changeset viewer.