diff options
author | Mark Spencer <markster@digium.com> | 2005-12-20 13:07:02 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-12-20 13:07:02 +0000 |
commit | d6b8ce392180cf2a2e348619f56c4139b3a55862 (patch) | |
tree | 837b83b927428cf5737bb9d5fe34d3c5f4f82187 /include/asterisk | |
parent | 74460d2e8b2363bb002087c8e916287f9855ab8b (diff) |
Major peformance improvements to meetme
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/channel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 6829f83f6..373ab6ac2 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -741,6 +741,15 @@ int ast_waitfor_n_fd(int *fds, int n, int *ms, int *exception); disconnected. */ struct ast_frame *ast_read(struct ast_channel *chan); +/*! Reads a frame, returning AST_FRAME_NULL frame if audio. */ +/*! + * \param chan channel to read a frame from + * Read a frame. Returns a frame, or NULL on error. If it returns NULL, you + best just stop reading frames and assume the channel has been + disconnected. Audio is replaced with AST_FRAME_NULL to avoid + transcode when the resulting audio is not necessary. */ +struct ast_frame *ast_read_noaudio(struct ast_channel *chan); + /*! Write a frame to a channel */ /*! * \param chan destination channel of the frame |