We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 569fe6e commit 961972fCopy full SHA for 961972f
util/filter.hh
@@ -122,6 +122,12 @@ struct ResizingOversampler {
122
return val_;
123
}
124
125
+ void reset() {
126
+ buff_ = 0;
127
+ val_ = 0;
128
+ idx_ = 0;
129
+ }
130
+
131
ResizingOversampler &operator=(ResizingOversampler const &that) {
132
buff_ = that.buff_;
133
val_ = that.val_;
@@ -133,7 +139,7 @@ struct ResizingOversampler {
139
private:
134
140
float buff_ = 0;
135
141
float val_ = 0;
136
- unsigned int idx_ = 0;
142
+ unsigned idx_ = 0;
137
143
unsigned size_ = 1;
138
144
};
145
0 commit comments