From a6dfc6bb767720e77ef83f235c3860a031ff8c8e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 20 Jul 2020 10:07:18 -0400 Subject: [PATCH] Increase maximum number of audio device channel groups in `AudioWidget` to 16. --- src/app/AudioWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/AudioWidget.cpp b/src/app/AudioWidget.cpp index 2e123c5b..f73fd3ff 100644 --- a/src/app/AudioWidget.cpp +++ b/src/app/AudioWidget.cpp @@ -88,7 +88,7 @@ static void appendAudioDeviceMenu(ui::Menu* menu, audio::Port* port) { for (int deviceId : port->driver->getDeviceIds()) { int channels = std::max(port->driver->getDeviceNumInputs(deviceId), port->driver->getDeviceNumOutputs(deviceId)); // Prevents devices with a ridiculous number of channels from being displayed - const int maxTotalChannels = port->maxChannels * 8; + const int maxTotalChannels = port->maxChannels * 16; channels = std::min(maxTotalChannels, channels); for (int offset = 0; offset < channels; offset += port->maxChannels) {