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:
parent
4d000ff593
commit
fea4fb8575
2 changed files with 6 additions and 8 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue