diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-10-12 11:36:06 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-10-12 11:36:06 -0500 |
commit | 8b58db0962bea3ba62da202f452cde5a20e201eb (patch) | |
tree | a4418e36671fcd1b81012c74eb99b31318e934f1 /include | |
parent | c44456db9d7b4791ad10fe714ff2d0b3f032a62d (diff) | |
parent | c4558236573ac599e6664c47e4db19d8a8eb953e (diff) |
Merge "Binaural synthesis (confbridge): interleaved two-channel audio."
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/channel.h | 10 | ||||
-rw-r--r-- | include/asterisk/translate.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 3293dd77b..df752c902 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 diff --git a/include/asterisk/translate.h b/include/asterisk/translate.h index b8cd21971..8188eb8eb 100644 --- a/include/asterisk/translate.h +++ b/include/asterisk/translate.h @@ -231,6 +231,7 @@ struct ast_trans_pvt { * explicit_dst contains an attribute which describes whether both parties * want to do forward-error correction (FEC). */ struct ast_format *explicit_dst; + int interleaved_stereo; /*!< indicates if samples are in interleaved order, for stereo lin */ }; /*! \brief generic frameout function */ |