Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/midiplay Make -p select the right program. Fixes PR...



details:   https://anonhg.NetBSD.org/src/rev/bee0c5920601
branches:  trunk
changeset: 516805:bee0c5920601
user:      augustss <augustss%NetBSD.org@localhost>
date:      Tue Oct 30 17:10:50 2001 +0000

description:
Make -p select the right program.  Fixes PR 14402, from itohy%netbsd.org@localhost.

diffstat:

 usr.bin/midiplay/midiplay.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r fe51955b4b64 -r bee0c5920601 usr.bin/midiplay/midiplay.c
--- a/usr.bin/midiplay/midiplay.c       Tue Oct 30 16:22:40 2001 +0000
+++ b/usr.bin/midiplay/midiplay.c       Tue Oct 30 17:10:50 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: midiplay.c,v 1.13 2001/04/07 21:03:41 tshiozak Exp $   */
+/*     $NetBSD: midiplay.c,v 1.14 2001/10/30 17:10:50 augustss Exp $   */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -350,13 +350,13 @@
        }
 
        /* 
-        * Play MIDI events by selecting the track track with the lowest
+        * Play MIDI events by selecting the track with the lowest
         * curtime.  Execute the event, update the curtime and repeat.
         */
        if (sameprogram) {
                for(t = 0; t < 16; t++) {
                        SEQ_MK_CHN_COMMON(&event, unit, MIDI_PGM_CHANGE, t,
-                           sameprogram+1, 0, 0);
+                           sameprogram-1, 0, 0);
                        send_event(&event);
                }
        }



Home | Main Index | Thread Index | Old Index