Browse Source

Set audio::Port::maxChannels in AudioInterface.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
f678e52df1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/Core/AudioInterface.cpp

+ 1
- 0
src/Core/AudioInterface.cpp View File

@@ -114,6 +114,7 @@ struct AudioInterface : Module {


AudioInterface() { AudioInterface() {
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
port.maxChannels = std::max(AUDIO_OUTPUTS, AUDIO_INPUTS);
onSampleRateChange(); onSampleRateChange();
} }




Loading…
Cancel
Save