feat: push loop output into save ring during playback

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-11 21:16:02 +00:00
parent 5a2414b4c3
commit 5430795510

View File

@@ -127,6 +127,14 @@ int process_callback(jack_nframes_t nframes, void *arg) {
break; 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; channels[c].prev_state = state;
} }