Skip to content

Commit 14d455f

Browse files
committed
Use as basic delay when taps=None
1 parent 8f2b7ba commit 14d455f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

shared-module/audiodelays/MultiTapDelay.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,13 @@ audioio_get_buffer_result_t audiodelays_multi_tap_delay_get_buffer(audiodelays_m
410410

411411
// Update delay buffer with sample and decay
412412
delay_word = delay_buffer[delay_buffer_pos + delay_buffer_offset];
413+
414+
// If no taps are provided, use as standard delay
415+
if (!self->tap_len) {
416+
word = delay_word;
417+
}
418+
419+
// Apply decay and add sample
413420
delay_word = (int32_t)(delay_word * decay + sample_word);
414421

415422
if (MP_LIKELY(self->base.bits_per_sample == 16)) {

0 commit comments

Comments
 (0)