=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/midi.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- src/usr.bin/aucat/Attic/midi.c 2010/01/16 23:18:31 1.15 +++ src/usr.bin/aucat/Attic/midi.c 2010/01/16 23:21:56 1.16 @@ -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 * @@ -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 @@ dbg_puts(": flushing realtime message\n"); } #endif + if (c == MIDI_ACK) + return; if (!ABUF_WOK(obuf)) { #ifdef DEBUG if (debug_level >= 4) {