fix: add null-checks for MIDI ports and use atomic access for channel active flag

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-09 09:57:36 +00:00
parent 74a190c70c
commit c0a0a6e968
4 changed files with 36 additions and 31 deletions

View File

@@ -21,7 +21,7 @@ struct channel_t {
int loop_count;
int record_pos;
int playback_pos;
int active;
atomic_int active;
jack_port_t *audio_in;
jack_port_t *audio_out;
};