diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-08 21:02:46 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-08 21:02:46 +0000 |
commit | aae89d91628f6d3e2191d8578461a826f76fc846 (patch) | |
tree | 9980f4b3704ece77e3b9166bc57e0a5e33c971c6 /include | |
parent | 809ba665791d0a64139cdc2b588bac4a039b49ca (diff) |
Add an option for ControlPlayback to be able to start at an offset from
the beginning of the file. Also, add a channel variable that indicates
the location in the file where the Playback was stopped.
(closes issue #7655, patch from sharkey)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68502 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/app.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h index c60219b85..77e77bfb0 100644 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -163,8 +163,14 @@ int ast_dtmf_stream(struct ast_channel *chan, struct ast_channel *peer, const ch /*! Stream a filename (or file descriptor) as a generator. */ int ast_linear_stream(struct ast_channel *chan, const char *filename, int fd, int allowoverride); -/*! Stream a file with fast forward, pause, reverse, restart. */ -int ast_control_streamfile(struct ast_channel *chan, const char *file, const char *fwd, const char *rev, const char *stop, const char *pause, const char *restart, int skipms); +/*! + * \brief Stream a file with fast forward, pause, reverse, restart. + * \param offsetms Before calling this function, set this to be the number + * of ms to start from the beginning of the file. When the function + * returns, it will be the number of ms from the beginning where the + * playback stopped. Pass NULL if you don't care. + */ +int ast_control_streamfile(struct ast_channel *chan, const char *file, const char *fwd, const char *rev, const char *stop, const char *pause, const char *restart, int skipms, long *offsetms); /*! Play a stream and wait for a digit, returning the digit that was pressed */ int ast_play_and_wait(struct ast_channel *chan, const char *fn); |