From 89b515395310c4e84a84992d3f0bd11f8ded6d03 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sat, 2 Dec 2023 17:44:20 +0200 Subject: gui is mine --- src/midi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/midi.c') diff --git a/src/midi.c b/src/midi.c index 11029b0..389a670 100644 --- a/src/midi.c +++ b/src/midi.c @@ -123,12 +123,13 @@ void midi_decode(uint32_t msg, synth_t * synth) { } } - +int enable = 0; void midiCallback(PtTimestamp timestamp, void *userData) { midi_t * m = (midi_t *)userData; if (!m->stream) return; + if (!enable) return; // if (!Pm_Poll(m->stream)) return; @@ -174,6 +175,7 @@ init_midi(midi_t *m, synth_t *synth) 128, NULL, NULL); + enable = 1; } void -- cgit v1.2.3