Browse Source

Add voltages on AudioInterface inputs.

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

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

@@ -171,7 +171,7 @@ struct AudioInterface : Module {
if (!outputBuffer.full()) { if (!outputBuffer.full()) {
dsp::Frame<AUDIO_OUTPUTS> outputFrame; dsp::Frame<AUDIO_OUTPUTS> outputFrame;
for (int i = 0; i < AUDIO_OUTPUTS; i++) { for (int i = 0; i < AUDIO_OUTPUTS; i++) {
outputFrame.samples[i] = inputs[AUDIO_INPUT + i].getVoltage() / 10.f;
outputFrame.samples[i] = inputs[AUDIO_INPUT + i].getVoltageSum() / 10.f;
} }
outputBuffer.push(outputFrame); outputBuffer.push(outputFrame);
} }


Loading…
Cancel
Save