From 25744ac6df54a6a7945fe2457fe1b5af55d7049f Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 28 Sep 2021 18:09:25 -0400 Subject: [PATCH] Display more channel offset menu items in AudioWidget. --- src/app/AudioWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/AudioWidget.cpp b/src/app/AudioWidget.cpp index 6d4a7479..ec43b56c 100644 --- a/src/app/AudioWidget.cpp +++ b/src/app/AudioWidget.cpp @@ -111,8 +111,8 @@ static void appendAudioDeviceMenu(ui::Menu* menu, audio::Port* port) { int numDeviceOutputs = port->getDeviceNumOutputs(deviceId); std::string name = port->getDeviceName(deviceId); - // Display only 8 channel offsets per device, because some virtual devices (e.g. ALSA) can have thousands of useless channels. - for (int i = 0; i < 8; i++) { + // Display only 32 channel offsets per device, because some virtual devices (e.g. ALSA) can have thousands of useless channels. + for (int i = 0; i < 32; i++) { int inputOffset = i * port->maxInputs; int outputOffset = i * port->maxOutputs; if (inputOffset >= numDeviceInputs && outputOffset >= numDeviceOutputs)