Skip to content

Commit

Permalink
Fixing Mac compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
elieserdejesus committed Apr 26, 2020
1 parent e931253 commit f039b03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Standalone/audio/MacPortAudioDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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());

Expand Down

0 comments on commit f039b03

Please sign in to comment.