Changeset 4981 for pjproject


Ignore:
Timestamp:
Feb 11, 2015 5:10:06 AM (9 years ago)
Author:
nanang
Message:

Misc (re #1782): added compile-time settings for Speex AGC & denoiser in Speex AEC, note that both are enabled by default, as previously AGC was enabled (by pjmedia, as it seems to improve AEC performance) and denoiser was also enabled by default by Speex.

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r4875 r4981  
    637637 
    638638/** 
     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/** 
    639660 * Maximum number of parameters in SDP fmtp attribute. 
    640661 * 
  • pjproject/trunk/pjmedia/src/pjmedia/echo_speex.c

    r4622 r4981  
    110110#endif 
    111111 
    112     /* Enable AGC */ 
     112    /* Enable/disable AGC & denoise */ 
    113113    { 
    114         spx_int32_t enabled = 1; 
     114        spx_int32_t enabled; 
     115 
     116        enabled = PJMEDIA_SPEEX_AEC_USE_AGC; 
    115117        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,  
    116122                             &enabled); 
    117123    } 
Note: See TracChangeset for help on using the changeset viewer.