Don't bother even checking let alone doing internal seeks for zero distances
This commit is contained in:
parent
98a3a96d40
commit
27e45e9336
@ -397,12 +397,14 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
|
||||
Evoral::Range<samplepos_t> loop_range (loc->start (), loc->end () - 1);
|
||||
ss = loop_range.squish (playback_sample);
|
||||
}
|
||||
if (ss != playback_sample) {
|
||||
if (can_internal_playback_seek (ss - playback_sample)) {
|
||||
internal_playback_seek (ss - playback_sample);
|
||||
} else {
|
||||
disk_samples_to_consume = 0; /* will force an underrun below */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* reset _declick_amp to the correct gain before processing this channel. */
|
||||
_declick_amp.set_gain (initial_declick_gain);
|
||||
|
Loading…
Reference in New Issue
Block a user