From bddf283e7a356a9e80c6bc45c214aa3851655f9e Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Mon, 9 May 2022 00:29:07 +0100 Subject: [PATCH] Always use "preferred" format where possible --- audiohandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/audiohandler.cpp b/audiohandler.cpp index 311f1d0..53d29d9 100644 --- a/audiohandler.cpp +++ b/audiohandler.cpp @@ -79,7 +79,8 @@ bool audioHandler::init(audioSetup setup) qCritical(logAudio()) << (setup.isinput ? "Input" : "Output") << "No channels found, aborting setup."; return false; } - if (outFormat.channelCount() == 1 && inFormat.channelCount() == 2) { + + /* if (outFormat.channelCount() == 1 && inFormat.channelCount() == 2) { outFormat.setChannelCount(2); if (!setup.port.isFormatSupported(outFormat)) { qCritical(logAudio()) << (setup.isinput ? "Input" : "Output") << "Cannot request stereo input!"; @@ -97,6 +98,7 @@ bool audioHandler::init(audioSetup setup) } } + */ if (outFormat.sampleSize() == 24) { // We can't convert this easily so use 32 bit instead.