Change default file-format to wav compatible RF64

This commit is contained in:
Robin Gareus
2024-11-23 17:02:16 +01:00
parent 9f6d3baa93
commit 448914b4cc
2 changed files with 13 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ CONFIG_VARIABLE (bool, use_region_fades, "use-region-fades", true)
CONFIG_VARIABLE (bool, use_transport_fades, "use-transport-fades", true)
CONFIG_VARIABLE (bool, use_monitor_fades, "use-monitor-fades", true)
CONFIG_VARIABLE (SampleFormat, native_file_data_format, "native-file-data-format", ARDOUR::FormatFloat)
CONFIG_VARIABLE (HeaderFormat, native_file_header_format, "native-file-header-format", ARDOUR::WAVE)
CONFIG_VARIABLE (HeaderFormat, native_file_header_format, "native-file-header-format", ARDOUR::RF64_WAV)
CONFIG_VARIABLE (bool, auto_play, "auto-play", false)
CONFIG_VARIABLE (bool, auto_return, "auto-return", false)
CONFIG_VARIABLE (bool, auto_input, "auto-input", true)

View File

@@ -4366,6 +4366,18 @@ Session::config_changed (std::string p, bool ours)
} else if (p == "native-file-header-format") {
#ifndef HAVE_RF64_RIFF
switch (config.get_native_file_header_format ()) {
case MBWF:
/* fallthrough */
case RF64_WAV:
config.set_native_file_header_format (RF64);
return;
default:
break;
}
#endif
if (!first_file_header_format_reset) {
reset_native_file_format ();
}