summaryrefslogtreecommitdiff
path: root/libs/plugins/reasonablesynth.lv2/rsynth.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/plugins/reasonablesynth.lv2/rsynth.c')
-rw-r--r--libs/plugins/reasonablesynth.lv2/rsynth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/plugins/reasonablesynth.lv2/rsynth.c b/libs/plugins/reasonablesynth.lv2/rsynth.c
index cee4042b94..6f8c845145 100644
--- a/libs/plugins/reasonablesynth.lv2/rsynth.c
+++ b/libs/plugins/reasonablesynth.lv2/rsynth.c
@@ -333,7 +333,8 @@ synth_fragment (void *synth, const size_t n_samples, float *left, float *right)
static void
synth_reset_channel(RSSynthChannel* sc)
{
- for (int k = 0; k < 128; ++k) {
+ int k;
+ for (k = 0; k < 128; ++k) {
sc->adsr_cnt[k] = 0;
sc->adsr_amp[k] = 0;
sc->phase[k] = -10;