Changeset 2222 for pjproject/trunk/pjmedia/include/pjmedia/silencedet.h
- Timestamp:
- Aug 19, 2008 11:04:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/silencedet.h
r2039 r2222 1 1 /* $Id$ */ 2 2 /* 3 * Copyright (C) 2003-200 8Benny Prijono <benny@prijono.org>3 * Copyright (C) 2003-2007 Benny Prijono <benny@prijono.org> 4 4 * 5 5 * This program is free software; you can redistribute it and/or modify … … 109 109 * 110 110 * @param sd The silence detector 111 * @param min_silenceMinimum duration of silence (in msec) before111 * @param before_silence Minimum duration of silence (in msec) before 112 112 * silence is reported. If -1 is specified, then 113 113 * the default value will be used. The default is 114 114 * 400 msec. 115 * @param min_signal Minimum duration of signal (in msec) before116 * signal is reported. If -1 is specified, then117 * the default value will be used. The default is118 * equal to one frame.119 * @param recalc_time The interval to recalculate signal and silence120 * proportion and to readjust the silence threshold121 * when adaptive silence detection is set. If -1122 * is s pecified, then the default value will be used.123 * The default value is 5000 (msec).115 * @param recalc_time1 The interval (in msec) to recalculate threshold 116 * in non-silence condition when adaptive silence 117 * detection is set. If -1 is specified, then the 118 * default value will be used. The default is 4000 119 * (msec). 120 * @param recalc_time2 The interval (in msec) to recalculate threshold 121 * in silence condition when adaptive silence detection 122 * is set. If -1 is specified, then the default value 123 * will be used. The default value is 2000 (msec). 124 124 * 125 125 * @return PJ_SUCCESS on success. 126 126 */ 127 127 PJ_DECL(pj_status_t) pjmedia_silence_det_set_params( pjmedia_silence_det *sd, 128 int min_silence, 129 int min_signal, 130 int recalc_time); 128 int before_silence, 129 int recalc_time1, 130 int recalc_time2); 131 131 132 132 133 /**
Note: See TracChangeset
for help on using the changeset viewer.