From c4558236573ac599e6664c47e4db19d8a8eb953e Mon Sep 17 00:00:00 2001 From: frahaase Date: Fri, 12 Aug 2016 18:22:02 +0200 Subject: 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 --- include/asterisk/channel.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/asterisk/channel.h') 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 @@ -2016,6 +2016,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 * -- cgit v1.2.3