triggerbox: reset _loop_cnt to zero on shutdown

This helps with preventing _loop_cnt incrementing to unintended values.
This commit is contained in:
Paul Davis 2022-02-18 12:51:42 -07:00
parent 0762ef4f35
commit 8a36f9fce8

View File

@ -653,6 +653,7 @@ Trigger::shutdown (BufferSet& bufs, pframes_t dest_offset)
{
_state = Stopped;
_playout = false;
_loop_cnt = 0;
_cue_launched = false;
_pending_velocity_gain = _velocity_gain = 1.0;
DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1 shuts down\n", name()));