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

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to