Skip to content

Commit

Permalink
while resetting, only unmute in when restaring
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Nov 1, 2024
1 parent c49abdb commit b8e125d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b8e125d

Please sign in to comment.