force complete peak compute.

Do not skip peaks when creating peak files while recording.
Fixes missing peaks in #6127

(TODO: after double-check and sign-off, remove ‘force’
parameter from ::compute_and_write_peaks API)
This commit is contained in:
Robin Gareus 2015-01-12 03:08:14 +01:00
parent 4255720dfb
commit e90a784fb5

View File

@ -470,7 +470,7 @@ SndFileSource::nondestructive_write_unlocked (Sample *data, framecnt_t cnt)
update_length (_length + cnt);
if (_build_peakfiles) {
compute_and_write_peaks (data, frame_pos, cnt, false, true);
compute_and_write_peaks (data, frame_pos, cnt, true, true);
}
return cnt;
@ -557,7 +557,7 @@ SndFileSource::destructive_write_unlocked (Sample* data, framecnt_t cnt)
update_length (file_pos + cnt);
if (_build_peakfiles) {
compute_and_write_peaks (data, file_pos, cnt, false, true);
compute_and_write_peaks (data, file_pos, cnt, true, true);
}
file_pos += cnt;