fix: expose command_queue_init for testing by removing static
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
2
engine.c
2
engine.c
@@ -285,7 +285,7 @@ static void process_queued_triggers(Engine *engine, jack_nframes_t nframes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Initialize command queue
|
// Initialize command queue
|
||||||
static void command_queue_init(CommandQueue *q) {
|
void command_queue_init(CommandQueue *q) {
|
||||||
atomic_store(&q->write_index, 0);
|
atomic_store(&q->write_index, 0);
|
||||||
atomic_store(&q->read_index, 0);
|
atomic_store(&q->read_index, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
3
engine.h
3
engine.h
@@ -142,6 +142,9 @@ int engine_submit_command(Engine *engine, CommandType type, int index, jack_nfra
|
|||||||
// Process pending commands (called from audio thread)
|
// Process pending commands (called from audio thread)
|
||||||
void engine_process_commands(Engine *engine);
|
void engine_process_commands(Engine *engine);
|
||||||
|
|
||||||
|
// Initialize command queue (exposed for testing)
|
||||||
|
void command_queue_init(CommandQueue *q);
|
||||||
|
|
||||||
// Utility
|
// Utility
|
||||||
const char* clip_state_to_string(ClipState state);
|
const char* clip_state_to_string(ClipState state);
|
||||||
uint8_t clip_state_to_velocity(ClipState state);
|
uint8_t clip_state_to_velocity(ClipState state);
|
||||||
|
|||||||
Reference in New Issue
Block a user