mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 11:06:32 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue