aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjrose <jrose@f38db490-d61c-443f-a65b-d21fe96a405b>2011-03-11 18:54:45 +0000
committerjrose <jrose@f38db490-d61c-443f-a65b-d21fe96a405b>2011-03-11 18:54:45 +0000
commit6fc8bc5261ec83109348224b812e8701b0f1780e (patch)
treee8fad5379d8eee5d6b2ab41a73d6270d8437b447 /include
parentf1bfb02b4f786fb63fc540fe8297ee1116fc314f (diff)
Mix Monitor: Now with r and t options.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@310373 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/audiohook.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/audiohook.h b/include/asterisk/audiohook.h
index 798a6d6e0..fd1da91dd 100644
--- a/include/asterisk/audiohook.h
+++ b/include/asterisk/audiohook.h
@@ -151,6 +151,17 @@ int ast_audiohook_write_frame(struct ast_audiohook *audiohook, enum ast_audiohoo
*/
struct ast_frame *ast_audiohook_read_frame(struct ast_audiohook *audiohook, size_t samples, enum ast_audiohook_direction direction, struct ast_format *format);
+/*! \brief Reads a frame in from the audiohook structure in mixed audio mode and copies read and write frame data to provided arguments.
+ * \param audiohook Audiohook structure
+ * \param samples Number of samples wanted
+ * \param direction Direction the audio frame came from
+ * \param format Format of frame remote side wants back
+ * \param ast_frame read_frame - if available, we'll copy the read buffer to this.
+ * \param ast_frame write_frame - if available, we'll copy the write buffer to this.
+ * \return Returns frame on success, NULL on failure
+ */
+struct ast_frame *ast_audiohook_read_frame_all(struct ast_audiohook *audiohook, size_t samples, struct ast_format *format, struct ast_frame **read_frame, struct ast_frame **write_frame);
+
/*! \brief Attach audiohook to channel
* \param chan Channel
* \param audiohook Audiohook structure