1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Check input as well as output devices names when checking if current audio device is still available in AudioDeviceManager::audioDeviceListChanged()

This commit is contained in:
ed 2020-02-13 17:04:35 +00:00
parent 8209053244
commit 9fda031414

View file

@ -128,7 +128,7 @@ void AudioDeviceManager::audioDeviceListChanged()
{
for (auto* dt : availableDeviceTypes)
if (currentAudioDevice->getTypeName() == dt->getTypeName())
for (auto& dn : dt->getDeviceNames())
for (auto& dn : dt->getDeviceNames (true))
if (currentAudioDevice->getName() == dn)
return true;