summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-04-10 14:18:24 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-04-10 14:18:24 -0600
commit92b59c1df9e527320b6b9f54b25eec4efb3ac6cb (patch)
tree550ba5b7661e4bd91a8523478a97b9c1f036ad97 /libs
parent8aae77b0ebb4fc02fb37d21e1b3753b18ea4cde7 (diff)
more debug info for DiskReader::maybe_xfade_loop()
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/disk_reader.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc
index b44b20def8..237ccd2214 100644
--- a/libs/ardour/disk_reader.cc
+++ b/libs/ardour/disk_reader.cc
@@ -198,7 +198,7 @@ float
DiskReader::buffer_load () const
{
/* Note: for MIDI it's not trivial to differentiate the following two cases:
- *
+ *
* 1. The playback buffer is empty because the system has run out of time to fill it.
* 2. The playback buffer is empty because there is no more data on the playlist.
*
@@ -1720,6 +1720,9 @@ DiskReader::maybe_xfade_loop (Sample* buf, samplepos_t read_start, samplepos_t r
* see also DiskReader::Declicker::run()
*/
+ cerr << "maybe_xfade, overlap style: " << enum_2_string (Evoral::coverage (fade_start, fade_end, read_start, read_end)) << endl;
+
+
switch (Evoral::coverage (fade_start, fade_end, read_start, read_end)) {
case Evoral::OverlapInternal:
/* note: start and end points cannot coincide (see evoral/Range.h)
@@ -1771,6 +1774,8 @@ DiskReader::maybe_xfade_loop (Sample* buf, samplepos_t read_start, samplepos_t r
return;
}
+ cerr << "maybe xfade, bo = " << bo << " vo " << vo << " n " << n << endl;
+
Sample* b = &buf[bo]; /* data to be faded out */
Sample* sbuf = &chan->pre_loop_buffer[vo]; /* pre-loop (maybe silence) to be faded in */
gain_t* og = &loop_declick_out.vec[vo]; /* fade out gain vector */