triggerbox: avoid ridiculously small tempo settings for stretch

*this should not be possible after , but just in case....
This commit is contained in:
Ben Loftis 2022-03-03 10:22:17 -06:00
parent 58f2c074a6
commit 618226d2bb

View file

@ -1735,7 +1735,7 @@ AudioTrigger::audio_run (BufferSet& bufs, samplepos_t start_sample, samplepos_t
BufferSet* scratch; BufferSet* scratch;
std::unique_ptr<BufferSet> scratchp; std::unique_ptr<BufferSet> scratchp;
std::vector<Sample*> bufp(nchans); std::vector<Sample*> bufp(nchans);
const bool do_stretch = stretching(); const bool do_stretch = stretching() && _segment_tempo > 1;
/* see if we're going to start or stop or retrigger in this run() call */ /* see if we're going to start or stop or retrigger in this run() call */
maybe_compute_next_transition (start_sample, start, end, nframes, dest_offset); maybe_compute_next_transition (start_sample, start, end, nframes, dest_offset);