refactor: replace static MIDI event array with dynamic allocation

This commit is contained in:
Loic Coenen
2026-05-03 19:05:29 +00:00
committed by Loic Coenen (aider)
parent 6f7bf08ae0
commit 316fc0fe3b

View File

@@ -56,8 +56,9 @@ typedef struct {
typedef struct { typedef struct {
ClipState state; ClipState state;
MidiEvent events[MAX_MIDI_EVENTS]; MidiEvent *events; // Dynamically allocated
int event_count; int event_count;
int max_events; // Allocated size
int read_index; int read_index;
char channel_name[64]; // per-channel name for MIDI grid char channel_name[64]; // per-channel name for MIDI grid
} MidiClip; } MidiClip;