1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 22:12:58 +02:00

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)
This commit is contained in:
Paul Licameli
2018-07-05 01:55:09 -04:00
parent 7c544ace78
commit 7d9c82f470

View File

@@ -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<DeviceSourceMap> &maps = isInput ? DeviceManager::Instance()->GetInputDeviceMaps()
: DeviceManager::Instance()->GetOutputDeviceMaps();