Browse Source

Display more channel offset menu items in AudioWidget.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
25744ac6df
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/app/AudioWidget.cpp

+ 2
- 2
src/app/AudioWidget.cpp View File

@@ -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)


Loading…
Cancel
Save