diff options
Diffstat (limited to 'src/midi.c')
-rw-r--r-- | src/midi.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2,6 +2,8 @@ #include "notes.h" #include "control.h" +#include <stdio.h> +#include <stdlib.h> #include <string.h> void midi_decode(uint32_t msg, synth_t * synth) { @@ -146,7 +148,7 @@ midiCallback(PtTimestamp timestamp, void *userData) { //printf("%d\n", buf.message); midi_decode(buf.message, m->synth); - + } void @@ -154,7 +156,7 @@ init_midi(midi_t *m, synth_t *synth) { m->stream = NULL; m->synth = synth; - + Pm_Initialize(); printf("midi devs: %d\n", Pm_CountDevices()); |