From f3e35cc145da0df5fffbd227981b667b1037d0a6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 29 Jul 2024 10:04:26 -0600 Subject: [PATCH] name RF64 files with .wav suffix In livetrax, where RF64 is one of two file formats, people frequently end up with files named .rf64 that are actually .wav due to the libsndfile header file downgrade. We want to avoid this, and this seems like a more common case than people generating actual RF64 files that (now) will be named .wav --- libs/ardour/utils.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index 4ecdd22c8c..c42d400839 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -647,7 +647,13 @@ ARDOUR::native_header_format_extension (HeaderFormat hf, const DataType& type) case RF64: case RF64_WAV: case MBWF: - return ".rf64"; + /* our goal when using RF64 is to be able to fall back to a + regular RIFF/WAV if the data size is small enough. Rather than + confuse people in the common case where this happens by having + files named "foo.rf64", deal with the common case as ".wav" and + leave potential confusion for the actual RF64 files. + */ + return ".wav"; } fatal << string_compose (_("programming error: unknown native header format: %1"), hf);