File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
shared-module/audiodelays Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
#include <stdint.h>
9
9
#include "py/runtime.h"
10
+ #include <math.h>
10
11
11
12
void common_hal_audiodelays_echo_construct (audiodelays_echo_obj_t * self , uint32_t max_delay_ms ,
12
13
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 *
334
335
mp_float_t mix = synthio_block_slot_get_limited (& self -> mix , MICROPY_FLOAT_CONST (0.0 ), MICROPY_FLOAT_CONST (1.0 ));
335
336
mp_float_t decay = synthio_block_slot_get_limited (& self -> decay , MICROPY_FLOAT_CONST (0.0 ), MICROPY_FLOAT_CONST (1.0 ));
336
337
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 );
338
339
if (MICROPY_FLOAT_C_FUN (fabs )(self -> current_delay_ms - f_delay_ms ) >= self -> sample_ms ) {
339
340
recalculate_delay (self , f_delay_ms );
340
341
}
You can’t perform that action at this time.
0 commit comments