]> git.alsa-project.org Git - alsa-lib.git/commitdiff
midiloop - remove running status test
authorClemens Ladisch <clemens@ladisch.de>
Fri, 29 Apr 2005 15:19:45 +0000 (15:19 +0000)
committerClemens Ladisch <clemens@ladisch.de>
Fri, 29 Apr 2005 15:19:45 +0000 (15:19 +0000)
Do not use running status to prevent errors with devices
that add or remove running status bytes.

test/midiloop.c

index a27d41a4430f4a0163e4650b6ec0b7958df1b787..94b2d4ea4400237621f7ebdcb9b38ba75cfd3774 100644 (file)
@@ -51,8 +51,9 @@ int writepattern(snd_rawmidi_t *handle_out, unsigned char *obuf)
                obuf[patsize++] = 0x80 + i;
                obuf[patsize++] = 0x23;
                obuf[patsize++] = 0x24;
-               obuf[patsize++] = 0x25;
-               obuf[patsize++] = 0x26;
+               obuf[patsize++] = 0xf0;
+               obuf[patsize++] = i;
+               obuf[patsize++] = 0xf7;
        }
        i = snd_rawmidi_write(handle_out, obuf, patsize);
        if (i != patsize) {