diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-05 23:28:34 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-05 23:28:34 +0200 |
commit | 7f00c70f9ffc8f112b70cb5159a9aa435deb2daf (patch) | |
tree | 45ade48c8fc6d1d9ca49fc1a3ebaf6765a2e328d /libs/ardour/audiosource.cc | |
parent | bea9bf53878a182c43bc766ac86f4591819238e0 (diff) |
create peak files in background when loading session
Diffstat (limited to 'libs/ardour/audiosource.cc')
-rw-r--r-- | libs/ardour/audiosource.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index 01a030914d..bfc2d9e4ab 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -744,12 +744,16 @@ AudioSource::build_peaks_from_scratch () goto out; } + lp.release(); // allow butler to refill buffers + if (compute_and_write_peaks (buf.get(), current_frame, frames_read, true, false, _FPP)) { break; } current_frame += frames_read; cnt -= frames_read; + + lp.acquire(); } if (cnt == 0) { |