Skip to content

Commit 38917c0

Browse files
author
Martin Klang
committed
fix InterpolatingCircularBuffer fractional read test
1 parent d0c8f9f commit 38917c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TestPatches/InterpolatingCircularBufferTestPatch.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class InterpolatingCircularBufferTestPatch : public TestPatch {
138138
FloatArray output = FloatArray::create(10);
139139
input.ramp(0, 5);
140140
buffer->write(input, input.getSize());
141-
buffer->read(output, output.getSize(), 0.5f);
141+
buffer->read(output, output.getSize(), 0.0f, 0.5f); // read at half rate from first position
142142
for(size_t j=0; j<9; ++j) // not checking last value in loop
143143
CHECK_CLOSE(output[j], j*0.5f, DEFAULT_TOLERANCE);
144144
CHECK_CLOSE(output[9], 2.0f, DEFAULT_TOLERANCE); // interpolated between 4 and 0 (wrapping)

0 commit comments

Comments
 (0)