diff options
author | frahaase <fra.haase@googlemail.com> | 2016-08-12 18:22:58 +0200 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2016-10-17 18:58:14 +0000 |
commit | dce31f90ba3a61846e8b04250484a437e33d51e2 (patch) | |
tree | 31aec7b190a9ccb269737e53bd9bfaf9a256574d /apps/confbridge/conf_config_parser.c | |
parent | 2a808b2fa6b90e32ea060a7e3928bea86774c27c (diff) |
Binaural synthesis (confbridge): On/off setting for binaural synthesis.
Adds setting to confbridge.conf (binaural_active) that determines if binaural
synthesis can be available in bridge_softmix.
ASTERISK-26292
Change-Id: I59dfcb8e55fe1df4ef32045882fea5bb58fc71db
Diffstat (limited to 'apps/confbridge/conf_config_parser.c')
-rw-r--r-- | apps/confbridge/conf_config_parser.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/confbridge/conf_config_parser.c b/apps/confbridge/conf_config_parser.c index 69d6f69ea..6f8510552 100644 --- a/apps/confbridge/conf_config_parser.c +++ b/apps/confbridge/conf_config_parser.c @@ -284,6 +284,13 @@ ASTERISK_REGISTER_FILE() or 80. </para></description> </configOption> + <configOption name="binaural_active"> + <synopsis>If true binaural conferencing with stereo audio is active</synopsis> + <description><para> + Activates binaural mixing for a conference bridge. + Binaural features are disabled by default. + </para></description> + </configOption> <configOption name="record_conference"> <synopsis>Record the conference starting with the first active user's entrance and ending with the last active user's exit</synopsis> <description><para> @@ -2172,6 +2179,7 @@ int conf_load_config(void) aco_option_register(&cfg_info, "jitterbuffer", ACO_EXACT, bridge_types, "no", OPT_BOOLFLAG_T, 1, FLDSET(struct bridge_profile, flags), USER_OPT_JITTERBUFFER); /* "auto" will fail to parse as a uint, but we use PARSE_DEFAULT to set the value to 0 in that case, which is the value that auto resolves to */ aco_option_register(&cfg_info, "internal_sample_rate", ACO_EXACT, bridge_types, "0", OPT_UINT_T, PARSE_DEFAULT, FLDSET(struct bridge_profile, internal_sample_rate), 0); + aco_option_register(&cfg_info, "binaural_active", ACO_EXACT, bridge_types, "no", OPT_BOOLFLAG_T, 1, FLDSET(struct bridge_profile, flags), BRIDGE_OPT_BINAURAL_ACTIVE); aco_option_register_custom(&cfg_info, "mixing_interval", ACO_EXACT, bridge_types, "20", mix_interval_handler, 0); aco_option_register(&cfg_info, "record_conference", ACO_EXACT, bridge_types, "no", OPT_BOOLFLAG_T, 1, FLDSET(struct bridge_profile, flags), BRIDGE_OPT_RECORD_CONFERENCE); aco_option_register_custom(&cfg_info, "video_mode", ACO_EXACT, bridge_types, NULL, video_mode_handler, 0); |