From 719debf292c9f68086ae0bf894c66174d2798d44 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 26 Mar 2024 11:34:13 -0600 Subject: [PATCH] if we're asked to use RF64_WAV, actually enabled libsndfile's downgrade capability Note that this does not alter the filename, which we might also want to consider --- libs/ardour/sndfilesource.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index 30bc390172..f462b141a2 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -404,7 +404,7 @@ SndFileSource::open () #ifdef HAVE_RF64_RIFF if (_file_is_new && _length == 0 && writable()) { if (_flags & RF64_RIFF) { - if (sf_command (_sndfile, SFC_RF64_AUTO_DOWNGRADE, 0, 0) != SF_TRUE) { + if (sf_command (_sndfile, SFC_RF64_AUTO_DOWNGRADE, 0, 1) != SF_TRUE) { char errbuf[256]; sf_error_str (_sndfile, errbuf, sizeof (errbuf) - 1); error << string_compose (_("Cannot mark RF64 audio file for automatic downgrade to WAV: %1"), errbuf)