mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
triggerbox: pay attention to the fact that a trigger may have Stopped while fast-forwarding
This commit is contained in:
parent
baacd3bb50
commit
439e112d32
1 changed files with 10 additions and 0 deletions
|
|
@ -1074,6 +1074,16 @@ AudioTrigger::start_and_roll_to (samplepos_t start_pos, samplepos_t end_position
|
|||
|
||||
pframes_t n = audio_run<false> (bufs, pos, pos+nframes, start_beats, end_beats, nframes, 0, bpm);
|
||||
|
||||
/* We could have reached the end. Check and restart, because
|
||||
* TriggerBox::fast_forward() already determined that we are
|
||||
* the active trigger at @param end_position
|
||||
*/
|
||||
|
||||
if (_state == Stopped) {
|
||||
retrigger ();
|
||||
_state = WaitingToStart;
|
||||
}
|
||||
|
||||
pos += n;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue