Skip to content

Commit

Permalink
Fix AudioSynthWaveformSineModulated amplitude without mod input (than…
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Dec 10, 2017
1 parent c26e766 commit 368261d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synth_sine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void AudioSynthWaveformSineModulated::update(void)
scale = (ph >> 8) & 0xFFFF;
val2 *= scale;
val1 *= 0x10000 - scale;
block->data[i] = (val1 + val2) >> 16;
block->data[i] = multiply_32x32_rshift32(val1 + val2, magnitude);
ph += inc;
}
}
Expand Down

0 comments on commit 368261d

Please sign in to comment.