if looping, squish DiskReader::playback_sample into loop range
This commit is contained in:
parent
d30f2180bf
commit
0f6ad823de
@ -404,6 +404,12 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
|
|||||||
playback_sample += disk_samples_to_consume;
|
playback_sample += disk_samples_to_consume;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Location* loc = _loop_location;
|
||||||
|
if (loc) {
|
||||||
|
Evoral::Range<samplepos_t> loop_range (loc->start(), loc->end() - 1);
|
||||||
|
playback_sample = loop_range.squish (playback_sample);
|
||||||
|
}
|
||||||
|
|
||||||
if (_playlists[DataType::AUDIO]) {
|
if (_playlists[DataType::AUDIO]) {
|
||||||
if (!c->empty()) {
|
if (!c->empty()) {
|
||||||
if (_slaved) {
|
if (_slaved) {
|
||||||
|
Loading…
Reference in New Issue
Block a user