diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-01-16 23:21:57 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-01-16 23:21:57 +0000 |
commit | 40fcc4c8b5fdd2357a2313d92be242c6f1cda854 (patch) | |
tree | cfa140e886bae6bc7c35f3a4034495879bff9a1e | |
parent | 0fd234220139583c84bfe38245ae1b91e0ecd24f (diff) |
don't transmit MIDI active sensing messages, because they
cannot be merged.
-rw-r--r-- | usr.bin/aucat/midi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/aucat/midi.c b/usr.bin/aucat/midi.c index c502d750043..d0403a38728 100644 --- a/usr.bin/aucat/midi.c +++ b/usr.bin/aucat/midi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.c,v 1.15 2010/01/16 23:18:31 ratchov Exp $ */ +/* $OpenBSD: midi.c,v 1.16 2010/01/16 23:21:56 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -59,6 +59,7 @@ #define MIDI_PC 0xc0 /* program change */ #define MIDI_CAT 0xd0 /* channel after touch */ #define MIDI_BEND 0xe0 /* pitch bend */ +#define MIDI_ACK 0xfe /* active sensing message */ /* * MIDI controller numbers @@ -135,6 +136,8 @@ thru_rt(struct aproc *p, struct abuf *ibuf, struct abuf *obuf, unsigned c) dbg_puts(": flushing realtime message\n"); } #endif + if (c == MIDI_ACK) + return; if (!ABUF_WOK(obuf)) { #ifdef DEBUG if (debug_level >= 4) { |