Merge "confbridge: Add support for specifying maximum sample rate."

This commit is contained in:
Friendly Automation
2019-12-19 10:00:43 -06:00
committed by Gerrit Code Review
8 changed files with 74 additions and 1 deletions

View File

@@ -302,6 +302,12 @@ struct ast_bridge_softmix {
* the channel uniqueid. Used for participant info correlation.
*/
unsigned int send_sdp_label;
/*!
* \brief The maximum sample rate softmix uses to mix channels.
*
* \note If this value is 0, there is no maximum sample rate.
*/
unsigned int maximum_sample_rate;
};
AST_LIST_HEAD_NOLOCK(ast_bridge_channels_list, ast_bridge_channel);
@@ -956,6 +962,21 @@ int ast_bridge_queue_everyone_else(struct ast_bridge *bridge, struct ast_bridge_
*/
void ast_bridge_set_internal_sample_rate(struct ast_bridge *bridge, unsigned int sample_rate);
/*!
* \brief Adjust the maximum mixing sample rate of a bridge
* used during multimix mode.
* \since 13.31.0
* \since 16.8.0
* \since 17.2.0
*
* \param bridge Channel to change the sample rate on.
* \param sample_rate the maximum sample rate to use. If a
* value of 0 is passed here, the bridge will be free to pick
* what ever sample rate it chooses.
*
*/
void ast_bridge_set_maximum_sample_rate(struct ast_bridge *bridge, unsigned int sample_rate);
/*!
* \brief Adjust the internal mixing interval of a bridge used
* during multimix mode.