From 2fdff085b6df1a4046cbf3b10ebe923e3ad3aa7d Mon Sep 17 00:00:00 2001 From: tpoole Date: Thu, 11 May 2017 17:15:10 +0100 Subject: [PATCH] Fixed a bug when displaying a "None" device in AudioDeviceSelectorComponent --- .../gui/juce_AudioDeviceSelectorComponent.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/juce_audio_utils/gui/juce_AudioDeviceSelectorComponent.cpp b/modules/juce_audio_utils/gui/juce_AudioDeviceSelectorComponent.cpp index eb9f0cbe5e..e33b6cbee5 100644 --- a/modules/juce_audio_utils/gui/juce_AudioDeviceSelectorComponent.cpp +++ b/modules/juce_audio_utils/gui/juce_AudioDeviceSelectorComponent.cpp @@ -488,8 +488,13 @@ public: { jassert (setup.manager->getCurrentAudioDevice() == nullptr); // not the correct device type! + inputChanLabel = nullptr; + outputChanLabel = nullptr; sampleRateLabel = nullptr; bufferSizeLabel = nullptr; + + inputChanList = nullptr; + outputChanList = nullptr; sampleRateDropDown = nullptr; bufferSizeDropDown = nullptr;