From 9f059c9e7376c8540f798d4560f9d93763434799 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Tue, 18 Jan 2022 08:58:02 +0000 Subject: [PATCH] Fix portaudio build --- servermain.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servermain.cpp b/servermain.cpp index e35afdb..4b7774c 100644 --- a/servermain.cpp +++ b/servermain.cpp @@ -704,12 +704,12 @@ void servermain::loadSettings() for (unsigned int i = 1; i < devices; i++) { info = audio->getDeviceInfo(i); if (info.outputChannels > 0) { - if (QString::fromStdString(info.name) == serverTxSetup.name) { + if (serverTxSetup.name == info->name) { serverTxSetup.port = i; } } if (info.inputChannels > 0) { - if (QString::fromStdString(info.name) == serverRxSetup.name) { + if (serverRxSetup.name == info->name) { serverRxSetup.port = i; } } @@ -740,12 +740,12 @@ void servermain::loadSettings() { info = Pa_GetDeviceInfo(i); if (info->maxInputChannels > 0) { - if (QString::fromStdString(info.name) == serverTxSetup.name) { + if (serverTxSetup.name == info->name) { serverTxSetup.port = i; } } if (info->maxOutputChannels > 0) { - if (QString::fromStdString(info.name) == serverRxSetup.name) { + if (serverRxSetup.name == info->name) { serverRxSetup.port = i; } }