1
0
Fork 0
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:
Anthony Nicholls 2025-02-26 09:32:08 +00:00
parent a433e4dce0
commit 76e498f495

View file

@ -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)