From ec3096373109ad556ab4885c77fcbaa377a2e760 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 11 May 2023 10:21:56 -0500 Subject: [PATCH] synthio: fix a -Warray-parameter diagnostic --- shared-module/synthio/Note.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-module/synthio/Note.c b/shared-module/synthio/Note.c index 87d32da031..9b72129834 100644 --- a/shared-module/synthio/Note.c +++ b/shared-module/synthio/Note.c @@ -229,7 +229,7 @@ STATIC int synthio_bend_value(synthio_note_obj_t *self, int16_t dur) { } } -uint32_t synthio_note_step(synthio_note_obj_t *self, int32_t sample_rate, int16_t dur, uint16_t *loudness) { +uint32_t synthio_note_step(synthio_note_obj_t *self, int32_t sample_rate, int16_t dur, uint16_t loudness[2]) { int tremolo_value = synthio_lfo_step(&self->tremolo_state, dur); loudness[0] = (((loudness[0] * tremolo_value) >> 15) * self->left_panning_scaled) >> 15; loudness[1] = (((loudness[1] * tremolo_value) >> 15) * self->right_panning_scaled) >> 15;