summaryrefslogtreecommitdiff
path: root/libs/ardour/audiosource.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-06-11 13:33:45 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-06-11 13:35:01 -0400
commitceb3c3809072b4f2070ca3b1635d23d3a46d3746 (patch)
tree1b6c16111d6c85ac639d7b8df1d2e156aa5f6412 /libs/ardour/audiosource.cc
parent97de6efe5d6705f5ca8fb7af0e595e0f9fa092c1 (diff)
comment tweak
Diffstat (limited to 'libs/ardour/audiosource.cc')
-rw-r--r--libs/ardour/audiosource.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc
index beb53a79bb..566a37f5bb 100644
--- a/libs/ardour/audiosource.cc
+++ b/libs/ardour/audiosource.cc
@@ -713,7 +713,7 @@ AudioSource::build_peaks_from_scratch ()
/* hold lock while building peaks */
Glib::Threads::Mutex::Lock lp (_lock);
-
+
if (prepare_for_peakfile_writes ()) {
goto out;
}
@@ -790,7 +790,9 @@ AudioSource::done_with_peakfile_writes (bool done)
_peakfile_fd = -1;
}
-/** @param first_frame Offset from the source start of the first frame to process */
+/** @param first_frame Offset from the source start of the first frame to
+ * process. _lock MUST be held by caller.
+*/
int
AudioSource::compute_and_write_peaks (Sample* buf, framecnt_t first_frame, framecnt_t cnt,
bool force, bool intermediate_peaks_ready)