triggerbox: a cue marker/event with cue-id < 0 means "stop all"

This commit is contained in:
Paul Davis 2022-02-11 11:33:06 -07:00
parent a1384d2789
commit 914b2447b8

View File

@ -2598,6 +2598,16 @@ TriggerBox::fast_forward (CueEvents const & cues, samplepos_t transport_position
CueEvents::const_iterator nxt_cue = c; ++nxt_cue;
if (c->cue < 0) {
/* "stop all cues" marker encountered. This ends the
duration of whatever slot might have been running
when we hit the cue.
*/
prev.reset ();
c = nxt_cue;
continue;
}
TriggerPtr trig (all_triggers[c->cue]);
if (trig->cue_isolated()) {