diff options
author | Carl Hetherington <carl@carlh.net> | 2010-11-14 15:01:53 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-11-14 15:01:53 +0000 |
commit | a46af0460b0fdcc145c4dd282fa4fe071d4971fc (patch) | |
tree | 81a1a2f4c779958df0f19d976e6cfd003afea5eb /libs/ardour/audiosource.cc | |
parent | 7a25fa1beb76b7148d4f96de5629d8b639aac9e7 (diff) |
Create a new layer if required on record to a track in stacked mode. Fixes #3391.
git-svn-id: svn://localhost/ardour2/branches/3.0@8026 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audiosource.cc')
-rw-r--r-- | libs/ardour/audiosource.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index 360e4cd48a..c61fb72ae2 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -648,7 +648,7 @@ AudioSource::build_peaks_from_scratch () goto out; } - framepos_t current_frame = 0; + framecnt_t current_frame = 0; framecnt_t cnt = _length; _peaks_built = false; @@ -722,15 +722,16 @@ AudioSource::done_with_peakfile_writes (bool done) _peakfile_descriptor = 0; } +/** @param first_frame Offset from the source start of the first frame to process */ int -AudioSource::compute_and_write_peaks (Sample* buf, framepos_t first_frame, framecnt_t cnt, +AudioSource::compute_and_write_peaks (Sample* buf, framecnt_t first_frame, framecnt_t cnt, bool force, bool intermediate_peaks_ready) { return compute_and_write_peaks (buf, first_frame, cnt, force, intermediate_peaks_ready, _FPP); } int -AudioSource::compute_and_write_peaks (Sample* buf, framepos_t first_frame, framecnt_t cnt, +AudioSource::compute_and_write_peaks (Sample* buf, framecnt_t first_frame, framecnt_t cnt, bool force, bool intermediate_peaks_ready, framecnt_t fpp) { Sample* buf2 = 0; |