Skip to content

Commit 48f272e

Browse files
committed
Fix build errors.
1 parent ec5b1e8 commit 48f272e

File tree

1 file changed

+2
-1
lines changed
  • shared-module/audiodelays

1 file changed

+2
-1
lines changed

shared-module/audiodelays/Echo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <stdint.h>
99
#include "py/runtime.h"
10+
#include <math.h>
1011

1112
void common_hal_audiodelays_echo_construct(audiodelays_echo_obj_t *self, uint32_t max_delay_ms,
1213
mp_obj_t delay_ms, mp_obj_t decay, mp_obj_t mix,
@@ -334,7 +335,7 @@ audioio_get_buffer_result_t audiodelays_echo_get_buffer(audiodelays_echo_obj_t *
334335
mp_float_t mix = synthio_block_slot_get_limited(&self->mix, MICROPY_FLOAT_CONST(0.0), MICROPY_FLOAT_CONST(1.0));
335336
mp_float_t decay = synthio_block_slot_get_limited(&self->decay, MICROPY_FLOAT_CONST(0.0), MICROPY_FLOAT_CONST(1.0));
336337

337-
mp_float_t f_delay_ms = synthio_block_slot(&self->delay_ms);
338+
mp_float_t f_delay_ms = synthio_block_slot_get(&self->delay_ms);
338339
if (MICROPY_FLOAT_C_FUN(fabs)(self->current_delay_ms - f_delay_ms) >= self->sample_ms) {
339340
recalculate_delay(self, f_delay_ms);
340341
}

0 commit comments

Comments
 (0)