mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 02:18:15 +00:00
Merge "Binaural synthesis (confbridge): interleaved two-channel audio."
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user