summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Glover <j@johnglover.net>2012-10-26 16:43:54 +0200
committerJohn Glover <j@johnglover.net>2012-10-26 16:43:54 +0200
commit43c4c7da29b8716159afeca71c38c00a788716e4 (patch)
tree2fa1c3e99f989d811782fb0b233413d216a9782f /src
parentb08857ae522d8570e88bc773c868fb221bf708d3 (diff)
downloadsimpl-43c4c7da29b8716159afeca71c38c00a788716e4.tar.gz
simpl-43c4c7da29b8716159afeca71c38c00a788716e4.tar.bz2
simpl-43c4c7da29b8716159afeca71c38c00a788716e4.zip
[partial_tracking] Make reset method a public
method of all partial tracking classes.
Diffstat (limited to 'src')
-rw-r--r--src/simpl/partial_tracking.h5
1 files changed, 3 insertions, 2 deletions
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);
};