13
0

more debug info for DiskReader::maybe_xfade_loop()

This commit is contained in:
Paul Davis 2020-04-10 14:18:24 -06:00
parent 8aae77b0eb
commit 92b59c1df9

View File

@ -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 */