Improve peak-file debug output, print affected source-name

This commit is contained in:
Robin Gareus 2022-12-27 13:35:53 +01:00
parent 475063c24d
commit 478338854d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -663,7 +663,9 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, samplecnt_t npeaks, samplepos
}
if (zero_fill) {
cerr << "Zero fill end of peaks (@ " << read_npeaks << " with " << zero_fill << ")" << endl;
#ifndef NDEBUG
cerr << "Zero fill '" << _name << "' end of peaks (@ " << read_npeaks << " with " << zero_fill << ")" << endl;
#endif
memset (&peak_cache[read_npeaks], 0, sizeof (PeakData) * zero_fill);
}