From 28a3209c2148072bfc20f26c85d6d742077a999a Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Sat, 14 May 2022 01:37:03 +0100 Subject: [PATCH] Update rthandler.cpp --- rthandler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rthandler.cpp b/rthandler.cpp index 1c10493..a392c46 100644 --- a/rthandler.cpp +++ b/rthandler.cpp @@ -133,7 +133,11 @@ bool rtHandler::init(audioSetup setup) else if (outFormat.channelCount() < 1) { qCritical(logAudio()) << (setup.isinput ? "Input" : "Output") << "No channels found, aborting setup."; - return false; + if (retryConnectCount < 10) { + QTimer::singleShot(500, this, std::bind(&rtHandler::init, this, setup)); + retryConnectCount++; + return false; + } } aParams.nChannels = outFormat.channelCount();