13
0

triggerbox: catch a very strange condition via abort(), to help with debugging.

Not easily reproducable, but definitely a bug somewhere.
This commit is contained in:
Paul Davis 2021-11-17 21:16:38 -07:00
parent ddf93aca19
commit 5ba6e14310

View File

@ -1962,6 +1962,9 @@ TriggerBox::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
*/
trigger_samples = nframes - (currently_playing->transition_samples - start_sample);
if (currently_playing->transition_samples < start_sample) {
abort ();
}
dest_offset = 0;
} else if (rt == Trigger::RunStart) {