summaryrefslogtreecommitdiff
path: root/include/asterisk/dsp.h
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2011-06-30 20:33:15 +0000
committerDavid Vossel <dvossel@digium.com>2011-06-30 20:33:15 +0000
commit1339a0a535f42ae51577aa01cfffc5f086915740 (patch)
treeafcca011f073934d3bf0b6e94b9ca2f326b265ad /include/asterisk/dsp.h
parentc81556d8ef7500fbc092637512f1e337933acbc6 (diff)
Video support for ConfBridge.
Review: https://reviewboard.asterisk.org/r/1288/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@325931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/dsp.h')
-rw-r--r--include/asterisk/dsp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asterisk/dsp.h b/include/asterisk/dsp.h
index 79e4da695..333415200 100644
--- a/include/asterisk/dsp.h
+++ b/include/asterisk/dsp.h
@@ -109,6 +109,11 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp,
number of seconds of silence */
int ast_dsp_silence(struct ast_dsp *dsp, struct ast_frame *f, int *totalsilence);
+/*! \brief Return non-zero if this is silence. Updates "totalsilence" with the total
+ number of seconds of silence. Returns the average energy of the samples in the frame
+ in frames_energy variable. */
+int ast_dsp_silence_with_energy(struct ast_dsp *dsp, struct ast_frame *f, int *totalsilence, int *frames_energy);
+
/*!
* \brief Return non-zero if this is noise. Updates "totalnoise" with the total
* number of seconds of noise