From f039b03e09ebf03f1cee4b43be37efd02e14ac69 Mon Sep 17 00:00:00 2001 From: elieserdejesus Date: Sun, 26 Apr 2020 11:24:22 -0300 Subject: [PATCH] Fixing Mac compilation --- src/Standalone/audio/MacPortAudioDriver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Standalone/audio/MacPortAudioDriver.cpp b/src/Standalone/audio/MacPortAudioDriver.cpp index fb898521d..2fa45bcbc 100644 --- a/src/Standalone/audio/MacPortAudioDriver.cpp +++ b/src/Standalone/audio/MacPortAudioDriver.cpp @@ -5,7 +5,7 @@ namespace audio { PortAudioDriver::PortAudioDriver(controller::MainController *mainController, - int deviceInputIndex, int deviceOutputIndex, + QString deviceInput, QString deviceOutput, int firstInIndex, int lastInIndex, int firstOutIndex, int lastOutIndex, int sampleRate, int bufferSize) : AudioDriver(mainController), @@ -20,8 +20,8 @@ PortAudioDriver::PortAudioDriver(controller::MainController *mainController, // initialize portaudio using default devices, mono input and try estereo output if possible PaError error = Pa_Initialize(); if (error == paNoError) { - audioInputDeviceIndex = deviceInputIndex; - audioOutputDeviceIndex = UseSingleAudioIODevice ? deviceInputIndex : deviceOutputIndex; + audioInputDeviceIndex = getDeviceIndexByName(deviceInput); + audioOutputDeviceIndex = UseSingleAudioIODevice ? audioInputDeviceIndex : getDeviceIndexByName(deviceOutput); globalInputRange = ChannelRange(0, getMaxInputs());