refactor: replace static MIDI event array with dynamic allocation
This commit is contained in:
committed by
Loic Coenen (aider)
parent
6f7bf08ae0
commit
316fc0fe3b
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user