From 728f01abf484e61f5a168c616db4804de6bbb44c Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Thu, 12 May 2022 13:39:00 +0100 Subject: [PATCH] Update servermain.cpp --- servermain.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/servermain.cpp b/servermain.cpp index 3209bd5..3124b81 100644 --- a/servermain.cpp +++ b/servermain.cpp @@ -639,14 +639,15 @@ void servermain::loadSettings() if (info->maxInputChannels > 0) { qDebug(logAudio()) << (i == Pa_GetDefaultInputDevice() ? "*" : " ") << "(" << i << ") Input Device : " << info->name; - if (rig->txAudioSetup.name == info->name) { - rig->txAudioSetup.portInt = i; + if (rig->rxAudioSetup.name == info->name) { + qDebug(logAudio()) << "Rig" << rig->rigName << "Selected rxAudio device:" << QString(info->name); + rig->rxAudioSetup.portInt = i; } } if (info->maxOutputChannels > 0) { - qDebug(logAudio()) << (i == Pa_GetDefaultOutputDevice() ? "*" : " ") << "(" << i << ") Output Device : " << info->name; - if (rig->rxAudioSetup.name == info->name) { - rig->rxAudioSetup.portInt = i; + if (rig->txAudioSetup.name == info->name) { + qDebug(logAudio()) << "Rig" << rig->rigName << "Selected txAudio device:" << QString(info->name); + rig->txAudioSetup.portInt = i; } } } @@ -668,7 +669,7 @@ void servermain::loadSettings() #endif ) { - qDebug(logSystem()) << "Audio input: " << deviceInfo.deviceName(); + qDebug(logAudio()) << "Rig" << rig->rigName << "Selected rxAudio device:" << deviceInfo.deviceName(); rig->rxAudioSetup.port = deviceInfo; } } @@ -685,7 +686,7 @@ void servermain::loadSettings() #endif ) { - qDebug(logSystem()) << "Audio output: " << deviceInfo.deviceName(); + qDebug(logAudio()) << "Rig" << rig->rigName << "Selected txAudio device:" << deviceInfo.deviceName(); rig->txAudioSetup.port = deviceInfo; } }