Add 3.8 changelog and fix RTA octave selection
This commit is contained in:
@@ -663,6 +663,9 @@ fn apply_global_to_rta(
|
||||
) -> PhoenixRtaConfig {
|
||||
config.fft_size = global.fft_size;
|
||||
config.bpo = global.rta_bpo_mode.clone();
|
||||
if config.bpo != "1_3" && config.layout == "rtw" {
|
||||
config.layout = "iec".to_string();
|
||||
}
|
||||
config.input_offset_db_l = global.input_offset_db_l;
|
||||
config.input_offset_db_r = global.input_offset_db_r;
|
||||
config.mono_input = global.mono_input;
|
||||
@@ -744,4 +747,14 @@ mod tests {
|
||||
assert_eq!(config.freq_range, "lf");
|
||||
assert_eq!(config.integration, "medium");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn non_third_octave_global_selection_leaves_locked_rtw_profile() {
|
||||
let mut global = PhoenixGlobalConfig::default();
|
||||
global.rta_bpo_mode = "1_12".to_string();
|
||||
let config = apply_global_to_rta(PhoenixRtaConfig::default(), &global);
|
||||
assert_eq!(config.layout, "iec");
|
||||
assert_eq!(config.bpo, "1_12");
|
||||
assert_eq!(config.engine, "iir");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user