globally change all use of "frame" to refer to audio into "sample".
[ardour.git] / libs / audiographer / audiographer / general / peak_reader.h
index 8bf0faa79261cf783f48927973f0dedffa07ccc7..bb042395443eb31d0db9554cded1d068fc805171 100644 (file)
@@ -25,7 +25,7 @@ class /*LIBAUDIOGRAPHER_API*/ PeakReader : public ListedSource<float>, public Si
        /// Finds peaks from the data \n RT safe
        void process (ProcessContext<float> const & c)
        {
-               peak = Routines::compute_peak (c.data(), c.frames(), peak);
+               peak = Routines::compute_peak (c.data(), c.samples(), peak);
                ListedSource<float>::output(c);
        }