1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +00:00

Fixed a typo in some ALSA code

This commit is contained in:
Julian Storer 2009-11-09 23:01:46 +00:00
parent 4d000ff593
commit fea4fb8575
2 changed files with 6 additions and 8 deletions

View file

@ -947,11 +947,10 @@ public:
const int inputIndex = inputNames.indexOf (inputDeviceName);
const int outputIndex = outputNames.indexOf (outputDeviceName);
String deviceName (outputDeviceName);
if (deviceName.isEmpty())
deviceName = inputDeviceName;
String deviceName (outputIndex >= 0 ? outputDeviceName
: inputDeviceName);
if (index >= 0)
if (inputIndex >= 0 || outputIndex >= 0)
return new ALSAAudioIODevice (deviceName,
inputIds [inputIndex],
outputIds [outputIndex]);