Don't update start more than once when reversing. I don't think this is causing any problems at present, but it might as well be cleaned up.
git-svn-id: svn://localhost/ardour2/branches/3.0@8726 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0264eee48f
commit
6890c43dce
|
@ -926,12 +926,12 @@ AudioDiskstream::read (Sample* buf, Sample* mixdown_buffer, float* gain_buffer,
|
|||
//cerr << "start is " << start << " loopstart: " << loop_start << " loopend: " << loop_end << endl;
|
||||
}
|
||||
|
||||
if (reversed) {
|
||||
start -= cnt;
|
||||
}
|
||||
|
||||
while (cnt) {
|
||||
|
||||
if (reversed) {
|
||||
start -= cnt;
|
||||
}
|
||||
|
||||
/* take any loop into account. we can't read past the end of the loop. */
|
||||
|
||||
if (loc && (loop_end - start < cnt)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user