We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3e90de commit fd8567bCopy full SHA for fd8567b
shared-module/audiodelays/Echo.c
@@ -452,8 +452,8 @@ audioio_get_buffer_result_t audiodelays_echo_get_buffer(audiodelays_echo_obj_t *
452
}
453
454
455
- word = (sample_word * MIN(MICROPY_FLOAT_CONST(2.0) - mix, MICROPY_FLOAT_CONST(1.0)))
456
- + (echo * MIN(mix, MICROPY_FLOAT_CONST(1.0)));
+ word = (int32_t)((sample_word * MIN(MICROPY_FLOAT_CONST(2.0) - mix, MICROPY_FLOAT_CONST(1.0)))
+ + (echo * MIN(mix, MICROPY_FLOAT_CONST(1.0))));
457
word = synthio_mix_down_sample(word, SYNTHIO_MIX_DOWN_SCALE(2));
458
459
if (MP_LIKELY(self->bits_per_sample == 16)) {
0 commit comments