fix: only set loop_count from record_pos when transitioning from record state
Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
@@ -75,7 +75,7 @@ int process_callback(jack_nframes_t nframes, void *arg) {
|
||||
channels[c].loop_count = 0;
|
||||
break;
|
||||
case STATE_LOOPING:
|
||||
if (channels[c].record_pos > 0)
|
||||
if (channels[c].prev_state == STATE_RECORD && channels[c].record_pos > 0)
|
||||
channels[c].loop_count = channels[c].record_pos;
|
||||
channels[c].playback_pos = 0;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user