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:
parent
4255720dfb
commit
e90a784fb5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user