mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
confbridge: Add support for specifying maximum sample rate.
ConfBridge has the ability to move between different sample rates for mixing the conference bridge. Up until now there has only been the ability to set the conference bridge to mix at a specific sample rate, or to let it move between sample rates as necessary. This change adds the ability to configure a conference bridge with a maximum sample rate so it can move between sample rates but only up to the configured maximum. ASTERISK-28658 Change-Id: Idff80896ccfb8a58a816e4ce9ac4ebde785963ee
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user