From 6890c43dce14b05763daeb1e57f1db5634daa6b0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 6 Feb 2011 18:32:05 +0000 Subject: [PATCH] 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 --- libs/ardour/audio_diskstream.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/ardour/audio_diskstream.cc b/libs/ardour/audio_diskstream.cc index 8428e05b39..30dd556735 100644 --- a/libs/ardour/audio_diskstream.cc +++ b/libs/ardour/audio_diskstream.cc @@ -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)) {