Browse Source

Increase maximum number of audio device channel groups in `AudioWidget` to 16.

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

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

@@ -88,7 +88,7 @@ static void appendAudioDeviceMenu(ui::Menu* menu, audio::Port* port) {
for (int deviceId : port->driver->getDeviceIds()) { for (int deviceId : port->driver->getDeviceIds()) {
int channels = std::max(port->driver->getDeviceNumInputs(deviceId), port->driver->getDeviceNumOutputs(deviceId)); int channels = std::max(port->driver->getDeviceNumInputs(deviceId), port->driver->getDeviceNumOutputs(deviceId));
// Prevents devices with a ridiculous number of channels from being displayed // 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); channels = std::min(maxTotalChannels, channels);


for (int offset = 0; offset < channels; offset += port->maxChannels) { for (int offset = 0; offset < channels; offset += port->maxChannels) {


Loading…
Cancel
Save