summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-02-20 00:22:17 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2020-02-20 00:22:17 -0700
commitefd6a856f895aa125de6b95c635e0368ef057d0c (patch)
tree157fb1548c86c494be2bcfde7b7c032eeb2da4c1
parentc2c41b38d030bf8e84293c17b6b9bb19248d9879 (diff)
add comment
-rw-r--r--libs/ardour/disk_reader.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc
index 95f926497d..e1a46ae0ee 100644
--- a/libs/ardour/disk_reader.cc
+++ b/libs/ardour/disk_reader.cc
@@ -1019,6 +1019,10 @@ DiskReader::_do_refill_with_alloc (bool partial_fill)
int
DiskReader::refill (Sample* sum_buffer, Sample* mixdown_buffer, float* gain_buffer, samplecnt_t fill_level)
{
+ /* NOTE: Audio refill MUST come first so that in contexts where ONLY it
+ is called, _last_read_reversed is set correctly.
+ */
+
if (refill_audio (sum_buffer, mixdown_buffer, gain_buffer, fill_level)) {
return -1;
}