Ignore:
Timestamp:
Feb 25, 2006 9:15:49 PM (18 years ago)
Author:
bennylp
Message:

Fixed echo in conference, and add ability to shrink buffer in jitter buffer

File:
1 edited

Legend:

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

    r228 r229  
    8686 
    8787/** 
    88  * Calculate average signal level for the given samples. 
    89  * 
    90  * @param samples       Pointer to 16-bit PCM samples. 
    91  * @param count         Number of samples in the input. 
    92  * 
    93  * @return              The average signal level, which simply is total level 
    94  *                      divided by number of samples. 
    95  */ 
    96 PJ_DECL(pj_int32_t) pjmedia_silence_det_calc_avg_signal( const pj_int16_t samples[], 
    97                                                          pj_size_t count ); 
    98  
    99  
    100 /** 
    101  * Perform voice activity detection on the given input samples. 
     88 * Perform voice activity detection on the given input samples. This 
     89 * function uses #pjmedia_calc_avg_signal() and #pjmedia_silence_det_apply() 
     90 * for its calculation. 
    10291 * 
    10392 * @param sd            The silence detector instance. 
     
    10998 * @return              PJ_SUCCESS on success. 
    11099 */ 
    111 PJ_DECL(pj_bool_t) pjmedia_silence_det_detect_silence( pjmedia_silence_det *sd, 
    112                                                        const pj_int16_t samples[], 
    113                                                        pj_size_t count, 
    114                                                        pj_int32_t *p_level); 
     100PJ_DECL(pj_bool_t) pjmedia_silence_det_detect( pjmedia_silence_det *sd, 
     101                                               const pj_int16_t samples[], 
     102                                               pj_size_t count, 
     103                                               pj_int32_t *p_level); 
     104 
     105 
     106/** 
     107 * Calculate average signal level for the given samples. 
     108 * 
     109 * @param samples       Pointer to 16-bit PCM samples. 
     110 * @param count         Number of samples in the input. 
     111 * 
     112 * @return              The average signal level, which simply is total level 
     113 *                      divided by number of samples. 
     114 */ 
     115PJ_DECL(pj_int32_t) pjmedia_calc_avg_signal( const pj_int16_t samples[], 
     116                                             pj_size_t count ); 
     117 
     118 
     119 
     120/** 
     121 * Perform voice activity detection, given the specified average signal 
     122 * level. 
     123 * 
     124 * @param sd            The silence detector instance. 
     125 * @param level         Signal level. 
     126 * 
     127 * @return              PJ_SUCCESS on success. 
     128 */ 
     129PJ_DECL(pj_bool_t) pjmedia_silence_det_apply( pjmedia_silence_det *sd, 
     130                                              pj_uint32_t level); 
    115131 
    116132 
Note: See TracChangeset for help on using the changeset viewer.