Change default file-format to wav compatible RF64
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user