mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
diskreader: fix decrement of start before zero (#8647)
This commit is contained in:
parent
4c1a82a153
commit
5ebe78ad2d
1 changed files with 1 additions and 0 deletions
|
|
@ -1019,6 +1019,7 @@ DiskReader::audio_read (Sample* sum_buffer,
|
||||||
|
|
||||||
if (reversed) {
|
if (reversed) {
|
||||||
start -= cnt;
|
start -= cnt;
|
||||||
|
start = max (samplepos_t (0), start);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We need this while loop in case we hit a loop boundary, in which case our read from
|
/* We need this while loop in case we hit a loop boundary, in which case our read from
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue