13
0

fix incorrect assert

This commit is contained in:
Paul Davis 2021-08-07 18:53:49 -06:00
parent b98c22dbba
commit 58aa2026dc

View File

@ -796,9 +796,12 @@ AudioTrigger::unbang (TriggerBox& /*proc*/, Temporal::Beats const &, samplepos_t
Trigger::RunResult
AudioTrigger::run (AudioBuffer& buf, uint32_t channel, pframes_t& nframes, pframes_t dest_offset, bool first)
{
assert (!_running);
assert (read_index[channel] < data_length);
if (!_running) {
return RemoveTrigger;
}
if (_stop_requested) {
/* XXX need fade out machinery instead of immediate stop */
_running = false;