From f2b5cdc35e4fe5ab17a5c09b21d24186bd7a2352 Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 22 Oct 2008 15:38:04 +0000 Subject: [PATCH] --- .../audio/devices/juce_AudioDeviceManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/juce_appframework/audio/devices/juce_AudioDeviceManager.cpp b/src/juce_appframework/audio/devices/juce_AudioDeviceManager.cpp index 0318c3d5cc..e2535d660f 100644 --- a/src/juce_appframework/audio/devices/juce_AudioDeviceManager.cpp +++ b/src/juce_appframework/audio/devices/juce_AudioDeviceManager.cpp @@ -411,6 +411,12 @@ const String AudioDeviceManager::setAudioDeviceSetup (const AudioDeviceSetup& ne outputChannels.clear(); outputChannels.setRange (0, numOutputChansNeeded, true); } + + if (newSetup.inputDeviceName.isEmpty()) + inputChannels.clear(); + + if (newSetup.outputDeviceName.isEmpty()) + outputChannels.clear(); } if (! newSetup.useDefaultInputChannels)