From 322cc54ad6210ab9b1dc1587e688d438f678eaa5 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Mon, 2 Jan 2023 17:56:22 +0000 Subject: [PATCH] Fix portaudio --- pahandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pahandler.cpp b/pahandler.cpp index 1c74367..4b06d06 100644 --- a/pahandler.cpp +++ b/pahandler.cpp @@ -112,8 +112,8 @@ bool paHandler::init(audioSetup setup) return false; } - if (inFormat.channelCount() < outFormat.channelCount()) { - outFormat.setChannelCount(inFormat.channelCount()); + if (outFormat.channelCount() == 1 && inFormat.channelCount() == 2) { + outFormat.setChannelCount(2); } aParams.channelCount = outFormat.channelCount();