From a043eb3931b58d9370565734211508af1f83fe94 Mon Sep 17 00:00:00 2001 From: grm Date: Sun, 2 Mar 2025 14:42:46 +0200 Subject: Add template and suppress verbose logging --- src/midi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/midi.c') diff --git a/src/midi.c b/src/midi.c index a015de4..2ba97d6 100644 --- a/src/midi.c +++ b/src/midi.c @@ -159,7 +159,7 @@ init_midi(midi_t *m, synth_t *synth) Pm_Initialize(); - printf("midi devs: %d\n", Pm_CountDevices()); + //printf("midi devs: %d\n", Pm_CountDevices()); const PmDeviceInfo *info; int i=0; for (i = 0; i < Pm_CountDevices(); i++) { @@ -167,10 +167,12 @@ init_midi(midi_t *m, synth_t *synth) if (!info->input) { continue; } - printf("%d: %s [input: %d output: %d opened: %d is_virt:%d] (interf: %s) -- %d\n", i, info->name, info->input, info->output, info->opened, info->is_virtual, info->interf, Pm_GetDefaultInputDeviceID()); + //printf("%d: %s [input: %d output: %d opened: %d is_virt:%d] (interf: %s) -- %d\n", i, info->name, info->input, info->output, info->opened, info->is_virtual, info->interf, Pm_GetDefaultInputDeviceID()); if (!strcmp(synth->midi_device.name, info->name) && !info->input) break; } + printf("Selected device: %s [input: %d output: %d opened: %d is_virt:%d] (interf: %s)\n", info->name, info->input, info->output, info->opened, info->is_virtual, info->interf); + Pt_Start(1, midiCallback, m); Pm_OpenInput(&(m->stream), -- cgit v1.2.3