We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6b800a + ef207e6 commit 0d6c6f2Copy full SHA for 0d6c6f2
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