diff options
author | grm <grm@eyesin.space> | 2025-03-02 14:42:46 +0200 |
---|---|---|
committer | grm <grm@eyesin.space> | 2025-03-02 14:42:46 +0200 |
commit | a043eb3931b58d9370565734211508af1f83fe94 (patch) | |
tree | 92df69f9d7511e83b88df5604558b669c5b2a899 /src/midi.c | |
parent | 092f4e2740a2e59a6b6c5aa064f59d9970790e23 (diff) | |
download | synth-project-a043eb3931b58d9370565734211508af1f83fe94.tar.gz synth-project-a043eb3931b58d9370565734211508af1f83fe94.tar.bz2 synth-project-a043eb3931b58d9370565734211508af1f83fe94.zip |
Add template and suppress verbose logging
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), |