fix: remove debug printf calls from engine_process_commands

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 16:17:45 +00:00
parent b1b8363d67
commit aefcb175dd

View File

@@ -339,28 +339,19 @@ void engine_process_commands(Engine *engine) {
clip->write_position = 0;
clip->buffer_size = 0;
clip->read_position = 0;
printf("Clip %d (scene %d, channel %d): Recording started\n",
cmd.index, cmd.index / MAX_CHANNELS, cmd.index % MAX_CHANNELS);
break;
case CLIP_RECORDING:
clip->state = CLIP_LOOPING;
clip->buffer_size = clip->write_position;
clip->read_position = 0;
printf("Clip %d (scene %d, channel %d): Recording stopped, looping %zu samples\n",
cmd.index, cmd.index / MAX_CHANNELS, cmd.index % MAX_CHANNELS,
clip->buffer_size);
break;
case CLIP_LOOPING:
clip->state = CLIP_STOPPED;
clip->read_position = 0;
printf("Clip %d (scene %d, channel %d): Looping stopped\n",
cmd.index, cmd.index / MAX_CHANNELS, cmd.index % MAX_CHANNELS);
break;
case CLIP_STOPPED:
clip->state = CLIP_LOOPING;
clip->read_position = 0;
printf("Clip %d (scene %d, channel %d): Looping resumed\n",
cmd.index, cmd.index / MAX_CHANNELS, cmd.index % MAX_CHANNELS);
break;
}
break;
@@ -368,7 +359,6 @@ void engine_process_commands(Engine *engine) {
case CMD_TRIGGER_SCENE: {
if (cmd.index < 0 || cmd.index >= MAX_SCENES) break;
printf("Scene %d: Triggering all clips\n", cmd.index);
for (int ch = 0; ch < MAX_CHANNELS; ch++) {
int clip_idx = CLIP_INDEX(cmd.index, ch);
Clip *clip = &engine->clips[clip_idx];