From 762f16995626eff862c41dcc307ddf1f8779e359 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Fri, 28 Oct 2005 21:49:27 +0000 Subject: add API call to properly sum two frames of SLINEAR data git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6883 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/frame.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/asterisk') diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index c17e2eecb..551138005 100755 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -427,6 +427,17 @@ static inline int ast_codec_interp_len(int format) */ int ast_frame_adjust_volume(struct ast_frame *f, int adjustment); +/*! + \brief Sums two frames of audio samples. + \param f1 The first frame (which will contain the result) + \param f2 The second frame + \return 0 for success, non-zero for an error + + The frames must be AST_FRAME_VOICE and must contain AST_FORMAT_SLINEAR samples, + and must contain the same number of samples. + */ +int ast_frame_slinear_sum(struct ast_frame *f1, struct ast_frame *f2); + #if defined(__cplusplus) || defined(c_plusplus) } #endif -- cgit v1.2.3