diff options
Diffstat (limited to 'src/midi.c')
-rw-r--r-- | src/midi.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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), |