mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +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:
@@ -3770,6 +3770,13 @@ void ast_bridge_set_internal_sample_rate(struct ast_bridge *bridge, unsigned int
|
||||
ast_bridge_unlock(bridge);
|
||||
}
|
||||
|
||||
void ast_bridge_set_maximum_sample_rate(struct ast_bridge *bridge, unsigned int sample_rate)
|
||||
{
|
||||
ast_bridge_lock(bridge);
|
||||
bridge->softmix.maximum_sample_rate = sample_rate;
|
||||
ast_bridge_unlock(bridge);
|
||||
}
|
||||
|
||||
static void cleanup_video_mode(struct ast_bridge *bridge)
|
||||
{
|
||||
switch (bridge->softmix.video_mode.mode) {
|
||||
|
Reference in New Issue
Block a user