From b8e125d33821df30270eff74e19dcd3ad8330654 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Fri, 1 Nov 2024 11:39:19 +0100 Subject: [PATCH] while resetting, only unmute in when restaring --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2c76b3f..dbb718f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1142,12 +1142,12 @@ impl Del2 { fn reset_taps(&mut self, timing: u32, restart: bool) { self.enabled_actions.store(LOCK_TAPS, false); - if self.params.global.mute_is_toggle.value() { - self.enabled_actions.store(MUTE_IN, false); - } self.delay_data.current_tap = 0; self.start_release_for_all_delay_taps(self.sample_rate); if restart { + if self.params.global.mute_is_toggle.value() { + self.enabled_actions.store(MUTE_IN, false); + } self.counting_state = CountingState::CountingInBuffer; self.timing_last_event = timing; } else {