summaryrefslogtreecommitdiff
path: root/include/asterisk/frame.h
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-10-28 21:49:27 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-10-28 21:49:27 +0000
commit97c9900b59e3cefdba1ce728f64af402c3f05db5 (patch)
tree93888bb17ef9068a1feb3c40b552a4d316472f3a /include/asterisk/frame.h
parent8dad624c68b5f920f810f76e3b49741f991b6ae6 (diff)
add API call to properly sum two frames of SLINEAR data
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/frame.h')
-rwxr-xr-xinclude/asterisk/frame.h11
1 files changed, 11 insertions, 0 deletions
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