fix: make loop_count atomic and increase remove channel delay

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-12 18:28:54 +00:00
parent df1f4fa6bd
commit 04b59999c8
3 changed files with 16 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ struct channel_t {
atomic_int state;
int prev_state;
float loop_buffer[LOOP_BUF_SIZE];
int loop_count;
atomic_int loop_count;
int record_pos;
int playback_pos;
atomic_int active;