diff options
author | frahaase <fra.haase@googlemail.com> | 2016-08-12 18:22:02 +0200 |
---|---|---|
committer | Dennis Guse <dennis.guse@alumni.tu-berlin.de> | 2016-10-03 03:12:50 -0500 |
commit | c4558236573ac599e6664c47e4db19d8a8eb953e (patch) | |
tree | 6be1b8f646caab922b707a9d59b87201f745bc4b /include/asterisk/channel.h | |
parent | e711e57106369fabfe46eefb43f7c30134ffa4e9 (diff) |
Binaural synthesis (confbridge): interleaved two-channel audio.
Asterisk only supports mono audio at the moment.
This patch adds interleaved two-channel audio to Asterisk's channels.
ASTERISK-26292
Change-Id: I7a547cea0fd3c6d1e502709d9e7e39605035757a
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 14bd32c07..94f72b879 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -2017,6 +2017,16 @@ int ast_set_write_format_from_cap(struct ast_channel *chan, struct ast_format_ca int ast_set_write_format(struct ast_channel *chan, struct ast_format *format); /*! + * \brief Sets write format for a channel. + * All internal data will than be handled in an interleaved format. (needed by binaural opus) + * + * \param chan channel to change + * \param format format to set for writing + * \return Returns 0 on success, -1 on failure + */ +int ast_set_write_format_interleaved_stereo(struct ast_channel *chan, struct ast_format *format); + +/*! * \brief Sends text to a channel * * \param chan channel to act upon |