We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6b800a commit ef207e6Copy full SHA for ef207e6
1 file changed
LibSource/Resample.h
@@ -102,8 +102,10 @@ class UpSampler : public SignalProcessor {
102
ASSERT(input.getSize()*factor==output.getSize(), "wrong size");
103
float* p = output;
104
output.clear();
105
- for(size_t i=0; i<input.getSize(); i+= factor)
106
- *p++ = input[i];
+ for (size_t i = 0; i < input.getSize(); ++i) {
+ *p = input[i];
107
+ p += factor;
108
+ }
109
filter->process(output, output);
110
}
111
};
0 commit comments