From 82e1aeaba9131432ceb543901741aeaafd42a543 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Sun, 3 Nov 2024 16:07:46 +0100 Subject: [PATCH] no need to clamp the read index: it wraps around --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 56858c4..b7e530b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -918,7 +918,7 @@ impl Plugin for Del2 { let drive = self.filter_params[tap_index].clone().drive; self.mute_in_delay_buffer.read_into( &mut self.mute_in_delayed[tap_index], - write_index - (delay_time - 1).max(0), + write_index - (delay_time - 1), ); // Depending on whether the delay tap has polyphonic modulation applied to it, // either the global parameter values are used, or the delay tap's smoother is used