diff --git a/test_engine.c b/test_engine.c index a1d34c5..9f754af 100644 --- a/test_engine.c +++ b/test_engine.c @@ -179,6 +179,13 @@ void test_full_cycle(void) { // Recording -> Looping state->clips[0].write_position = 200; + + // Write data into the ring buffer so the reducer can copy it + for (size_t i = 0; i < 200; i++) { + state->record_buffer[0][i] = (float)i; + } + atomic_store(&state->record_write_pos[0], 200); + reducer(state, action); assert(state->clips[0].state == CLIP_LOOPING); assert(state->clips[0].buffer_size == 200);