Skip to content

Commit

Permalink
Fix constant source output.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuscu committed Oct 3, 2024
1 parent 667804a commit 24c449c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ namespace l::nodegraph {
/* Mathematical operations */

/*********************************************************************/
void GraphSourceConstants::Process(int32_t numSamples, std::vector<NodeGraphInput>& inputs, std::vector<NodeGraphOutput>& outputs) {
auto input0 = inputs.at(0).GetIterator(numSamples);
auto output0 = outputs.at(0).GetIterator(numSamples);
void GraphSourceConstants::Process(int32_t, std::vector<NodeGraphInput>& inputs, std::vector<NodeGraphOutput>& outputs) {
auto input0 = inputs.at(0).GetIterator(1);
auto output0 = outputs.at(0).GetIterator(1);

for (int8_t i = 0; i < mNumOutputs; i++) {
*output0++ = *input0++;
*output0 = *input0;
}
}

Expand Down

0 comments on commit 24c449c

Please sign in to comment.