Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Commit

Permalink
perl -i -pe 's/(outputs\[.*?\])\.value = (.*?);/$1.setVoltage($2);/g'…
Browse files Browse the repository at this point in the history
… src/*
  • Loading branch information
Skrylar committed Jul 3, 2019
1 parent 76fad75 commit 99e2324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jack-audio-module.cc
Expand Up @@ -31,7 +31,7 @@ void JackAudioModule::process(const ProcessArgs &args) {
if (!rack_input_buffer.empty()) {
Frame<AUDIO_OUTPUTS> input_frame = rack_input_buffer.shift();
for (int i = 0; i < AUDIO_INPUTS; i++) {
outputs[AUDIO_OUTPUT+i].value = input_frame.samples[i] * 10.0f;
outputs[AUDIO_OUTPUT+i].setVoltage(input_frame.samples[i] * 10.0f);
}
}

Expand Down Expand Up @@ -270,7 +270,7 @@ void jack_audio_in8_module::process(const ProcessArgs &args) {
if (!rack_output_buffer.empty()) {
Frame<AUDIO_OUTPUTS> output_frame = rack_output_buffer.shift();
for (int i = 0; i < AUDIO_OUTPUTS; i++) {
outputs[AUDIO_OUTPUT+i].value = output_frame.samples[i] * 10.0f;
outputs[AUDIO_OUTPUT+i].setVoltage(output_frame.samples[i] * 10.0f);
}
}

Expand Down

0 comments on commit 99e2324

Please sign in to comment.