|
|
@@ -544,6 +544,8 @@ String AudioDeviceManager::setAudioDeviceSetup (const AudioDeviceSetup& newSetup |
|
|
|
else if (currentAudioDevice != nullptr)
|
|
|
|
return {};
|
|
|
|
|
|
|
|
stopDevice();
|
|
|
|
|
|
|
|
if (getCurrentDeviceTypeObject() == nullptr
|
|
|
|
|| (newSetup.inputDeviceName.isEmpty() && newSetup.outputDeviceName.isEmpty()))
|
|
|
|
{
|
|
|
@@ -555,8 +557,6 @@ String AudioDeviceManager::setAudioDeviceSetup (const AudioDeviceSetup& newSetup |
|
|
|
return {};
|
|
|
|
}
|
|
|
|
|
|
|
|
stopDevice();
|
|
|
|
|
|
|
|
String error;
|
|
|
|
|
|
|
|
if (currentSetup.inputDeviceName != newSetup.inputDeviceName
|
|
|
|