From 43c4c7da29b8716159afeca71c38c00a788716e4 Mon Sep 17 00:00:00 2001 From: John Glover Date: Fri, 26 Oct 2012 16:43:54 +0200 Subject: [partial_tracking] Make reset method a public method of all partial tracking classes. --- src/simpl/partial_tracking.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/simpl/partial_tracking.h b/src/simpl/partial_tracking.h index 1cf022d..8606cb0 100644 --- a/src/simpl/partial_tracking.h +++ b/src/simpl/partial_tracking.h @@ -47,7 +47,8 @@ class PartialTracking { PartialTracking(); ~PartialTracking(); - void clear(); + virtual void reset() {}; + virtual void clear(); int sampling_rate(); virtual void sampling_rate(int new_sampling_rate); @@ -125,11 +126,11 @@ class SndObjPartialTracking : public PartialTracking { sample* _peak_amplitude; sample* _peak_frequency; sample* _peak_phase; - void reset(); public: SndObjPartialTracking(); ~SndObjPartialTracking(); + void reset(); void max_partials(int new_max_partials); Peaks update_partials(Frame* frame); }; -- cgit v1.2.3