diff options
author | Robin Gareus <robin@gareus.org> | 2015-01-12 03:08:14 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-01-12 18:19:05 +0100 |
commit | e90a784fb50ed7871a24f972265d52f0f21d07a7 (patch) | |
tree | 4c94fb239967a10e8fbef96bd6c54612eb3ba159 /libs/ardour/sndfilesource.cc | |
parent | 4255720dfb92cb312d93f3e9fb809fc1e9ea5fb3 (diff) |
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)
Diffstat (limited to 'libs/ardour/sndfilesource.cc')
-rw-r--r-- | libs/ardour/sndfilesource.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index 27c91c8c27..6eb42d4b08 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -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; |