WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

silencedet.h File Reference

Adaptive silence detector. More...

Typedefs

typedef struct pjmedia_silence_det pjmedia_silence_det
 

Functions

pj_status_t pjmedia_silence_det_create (pj_pool_t *pool, unsigned clock_rate, unsigned samples_per_frame, pjmedia_silence_det **p_sd)
 
pj_status_t pjmedia_silence_det_set_name (pjmedia_silence_det *sd, const char *name)
 
pj_status_t pjmedia_silence_det_set_fixed (pjmedia_silence_det *sd, int threshold)
 
pj_status_t pjmedia_silence_det_set_adaptive (pjmedia_silence_det *sd, int threshold)
 
pj_status_t pjmedia_silence_det_set_params (pjmedia_silence_det *sd, int before_silence, int recalc_time1, int recalc_time2)
 
pj_status_t pjmedia_silence_det_disable (pjmedia_silence_det *sd)
 
pj_bool_t pjmedia_silence_det_detect (pjmedia_silence_det *sd, const pj_int16_t samples[], pj_size_t count, pj_int32_t *p_level)
 
pj_int32_t pjmedia_calc_avg_signal (const pj_int16_t samples[], pj_size_t count)
 
pj_bool_t pjmedia_silence_det_apply (pjmedia_silence_det *sd, pj_uint32_t level)
 

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.