From 7d9c82f47036a5856e5f2607f546bd2feb852f24 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 5 Jul 2018 01:55:09 -0400 Subject: [PATCH] Output device should be changeable even when no input devices... ... I observed that you couldn't, with a Mac Mini connected to a monitor; two output devices (monitor and built-in) but no input device (there is no built in mic) --- src/toolbars/DeviceToolBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toolbars/DeviceToolBar.cpp b/src/toolbars/DeviceToolBar.cpp index 1140b917a..1c6eda7df 100644 --- a/src/toolbars/DeviceToolBar.cpp +++ b/src/toolbars/DeviceToolBar.cpp @@ -713,7 +713,7 @@ void DeviceToolBar::ChangeDevice(bool isInput) wxChoice *combo = isInput ? mInput :mOutput; size_t i; - int selectionIndex = mInput->GetSelection(); + int selectionIndex = combo->GetSelection(); wxString host = gPrefs->Read(wxT("/AudioIO/Host"), wxT("")); const std::vector &maps = isInput ? DeviceManager::Instance()->GetInputDeviceMaps() : DeviceManager::Instance()->GetOutputDeviceMaps();