diff options
author | Carl Hetherington <carl@carlh.net> | 2011-02-06 18:32:05 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-02-06 18:32:05 +0000 |
commit | 6890c43dce14b05763daeb1e57f1db5634daa6b0 (patch) | |
tree | 8065f656548fe4d0c15724cc16c5d684d9b71da8 /libs/ardour/audio_diskstream.cc | |
parent | 0264eee48f86b02e0f69740fb0caf85698c09d54 (diff) |
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
Diffstat (limited to 'libs/ardour/audio_diskstream.cc')
-rw-r--r-- | libs/ardour/audio_diskstream.cc | 8 |
1 files 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)) { |