Skip to content

Commit

Permalink
unmute at tap creation, not at reset
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Oct 30, 2024
1 parent a5b01f0 commit a8bb4fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1350,10 +1350,6 @@ impl Del2 {
self.enabled_actions.store(LOCK_TAPS, false);
self.delay_data.current_tap = 0;
self.start_release_for_all_delay_taps(self.sample_rate);
if self.params.global.mute_is_toggle.value() {
self.enabled_actions.store(MUTE_IN, false);
self.enabled_actions.store(MUTE_OUT, false);
}
if restart {
self.counting_state = CountingState::CountingInBuffer;
self.timing_last_event = timing;
Expand Down Expand Up @@ -1825,6 +1821,8 @@ impl Del2 {
};
self.next_internal_delay_tap_id = self.next_internal_delay_tap_id.wrapping_add(1);

self.enabled_actions.store(MUTE_OUT, false);

// Can't use `.iter_mut().find()` here because nonlexical lifetimes don't apply to return
// values
match self
Expand Down

0 comments on commit a8bb4fd

Please sign in to comment.