diff options
Diffstat (limited to 'libs/audiographer/audiographer/general/peak_reader.h')
-rw-r--r-- | libs/audiographer/audiographer/general/peak_reader.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/audiographer/audiographer/general/peak_reader.h b/libs/audiographer/audiographer/general/peak_reader.h index dd5d65491c..8bf0faa792 100644 --- a/libs/audiographer/audiographer/general/peak_reader.h +++ b/libs/audiographer/audiographer/general/peak_reader.h @@ -15,10 +15,10 @@ class /*LIBAUDIOGRAPHER_API*/ PeakReader : public ListedSource<float>, public Si public: /// Constructor \n RT safe PeakReader() : peak (0.0) {} - + /// Returns the highest absolute of the values found so far. \n RT safe float get_peak() { return peak; } - + /// Resets the peak to 0 \n RT safe void reset() { peak = 0.0; } @@ -28,9 +28,9 @@ class /*LIBAUDIOGRAPHER_API*/ PeakReader : public ListedSource<float>, public Si peak = Routines::compute_peak (c.data(), c.frames(), peak); ListedSource<float>::output(c); } - + using Sink<float>::process; - + private: float peak; }; |