diff --git a/src/looper.c b/src/looper.c index 7d20ee7..9b366b2 100644 --- a/src/looper.c +++ b/src/looper.c @@ -127,6 +127,14 @@ int process_callback(jack_nframes_t nframes, void *arg) { break; } + /* push loop output into save ring if saving */ + if (channels[c].save_ring != NULL) { + if (state == STATE_LOOPING && channels[c].loop_count > 0) { + float *outf = (float *)out; + ring_write(channels[c].save_ring, outf, nframes); + } + } + channels[c].prev_state = state; }