diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-20 13:07:02 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-20 13:07:02 +0000 |
commit | be3c78074ebefa914ddaaed7fe175b2cdda3aad3 (patch) | |
tree | 837b83b927428cf5737bb9d5fe34d3c5f4f82187 /include | |
parent | cabac00beeb882f9cdbb3d8375dd1215face1b27 (diff) |
Major peformance improvements to meetme
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7547 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-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 |