From 99e2ac28e1a07c37dfaf057fb3068ff02f7e682d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 1 May 2024 22:30:04 +0200 Subject: [PATCH] Update debug message to include regionfx and offset --- libs/ardour/audioregion.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 6944e05bca..3f5aaa82b3 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -669,9 +669,6 @@ AudioRegion::read_at (Sample* buf, uint32_t fx_latency = _fx_latency; lm.release (); - DEBUG_TRACE (DEBUG::AudioPlayback, string_compose ("Region '%1' channel: %2 read at %3 - %4 to_read: %5 with fx: %6\n", - name(), chan_n, internal_offset, internal_offset + to_read, to_read, have_fx)); - ChanCount cc (DataType::AUDIO, n_channels ()); _readcache.ensure_buffers (cc, to_read + _fx_latency); @@ -698,6 +695,9 @@ AudioRegion::read_at (Sample* buf, n_read = max (0, min (to_read, lsamples - offset)); } + DEBUG_TRACE (DEBUG::AudioPlayback, string_compose ("Region '%1' channel: %2 read: %3 - %4 (%5) to_read: %6 offset: %7 with fx: %8 fx_latency: %9\n", + name(), chan_n, readat, readat + n_read, n_read, to_read, internal_offset, have_fx, fx_latency)); + _readcache.ensure_buffers (cc, n_proc); if (n_read < n_proc) {