Ignore:
Timestamp:
Aug 7, 2006 10:24:52 AM (18 years ago)
Author:
bennylp
Message:

Change set_ec_tail() API to set_ec() in sound port, also change suppressor to reduce mic signal by division rather than zeroing the signal. Also moved out VAD and EC settings to config.h.

File:
1 edited

Legend:

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

    r653 r658  
    162162 
    163163/** 
     164 * Suggested or default threshold to be set for fixed silence detection 
     165 * or as starting threshold for adaptive silence detection. The threshold 
     166 * has the range from zero to 255. 
     167 */ 
     168#ifndef PJMEDIA_SILENCE_DET_THRESHOLD 
     169#   define PJMEDIA_SILENCE_DET_THRESHOLD        4 
     170#endif 
     171 
     172 
     173/** 
    164174 * G.711 Appendix I Packet Lost Concealment (PLC). 
    165175 * Enabled only when floating point is enabled. 
     
    176186#ifndef PJMEDIA_HAS_SPEEX_AEC 
    177187#   define PJMEDIA_HAS_SPEEX_AEC                1 
     188#endif 
     189 
     190 
     191/** 
     192 * Initial signal threshold to be applied to echo suppressor. When 
     193 * playback signal level is greater than this threshold, the microphone 
     194 * signal will be reduced or cut. 
     195 */ 
     196#ifndef PJMEDIA_ECHO_SUPPRESS_THRESHOLD 
     197#   define PJMEDIA_ECHO_SUPPRESS_THRESHOLD      PJMEDIA_SILENCE_DET_THRESHOLD 
     198#endif 
     199 
     200 
     201/** 
     202 * The signal reduction factor to be applied into the microphone signal 
     203 * when the mic signal needs to be reduced. Valid values are [1-16], where 
     204 * 1 will leave signal as it is (thus probably transmitting the echo) and 
     205 * 16 will effectively zero the signal. 
     206 */ 
     207#ifndef PJMEDIA_ECHO_SUPPRESS_FACTOR 
     208#   define PJMEDIA_ECHO_SUPPRESS_FACTOR         4 
    178209#endif 
    179210 
Note: See TracChangeset for help on using the changeset viewer.