[Asterisk-cvs] asterisk/include/asterisk frame.h,1.61,1.62
kpfleming
kpfleming
Fri Oct 28 17:56:51 CDT 2005
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv2657/include/asterisk
Modified Files:
frame.h
Log Message:
add API call to properly sum two frames of SLINEAR data
Index: frame.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/frame.h,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- frame.h 28 Oct 2005 16:20:44 -0000 1.61
+++ frame.h 28 Oct 2005 21:49:27 -0000 1.62
@@ -427,6 +427,17 @@
*/
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
More information about the svn-commits
mailing list