mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
AudioDeviceManager: Skip validation when there is only one device
This commit is contained in:
parent
a433e4dce0
commit
76e498f495
1 changed files with 4 additions and 0 deletions
|
|
@ -587,6 +587,10 @@ void AudioDeviceManager::insertDefaultDeviceNames (AudioDeviceSetup& setup) cons
|
|||
if (setup.inputDeviceName.isEmpty() && ! inputsToTest.isEmpty())
|
||||
setup.inputDeviceName = inputsToTest[0];
|
||||
|
||||
// No pairs to validate
|
||||
if (outputsToTest.size() < 2 && inputsToTest.size() < 2)
|
||||
return;
|
||||
|
||||
// We check all possible in-out pairs until the first validation pass. If no pair passes we
|
||||
// leave the setup unchanged.
|
||||
for (const auto& out : outputsToTest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue