summaryrefslogtreecommitdiff
path: root/test/playmidi1.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2003-07-14 10:23:16 +0000
committerTakashi Iwai <tiwai@suse.de>2003-07-14 10:23:16 +0000
commit0811da2a1573850d8871c69e2b02f86be5aa3aed (patch)
treebfd387f58dc3e07cb3221a8f75fe79a249282df1 /test/playmidi1.c
parent3eba62e9a829639ce4c04a1dab181adebf14faec (diff)
downloadalsa-lib-0811da2a1573850d8871c69e2b02f86be5aa3aed.tar.gz
fixed the type prefix of printd for the time (unsigned long).
Diffstat (limited to 'test/playmidi1.c')
-rw-r--r--test/playmidi1.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/playmidi1.c b/test/playmidi1.c
index 2860760b..a7f3a63c 100644
--- a/test/playmidi1.c
+++ b/test/playmidi1.c
@@ -265,7 +265,7 @@ static void do_noteon(int chan, int pitch, int vol)
snd_seq_event_t ev;
if (verbose >= VERB_EVENT)
- printf("%d: NoteOn (%d) %d %d\n", Mf_currtime, chan, pitch, vol);
+ printf("%ld: NoteOn (%d) %d %d\n", Mf_currtime, chan, pitch, vol);
set_event_header(&ev);
snd_seq_ev_set_noteon(&ev, chan, pitch, vol);
write_ev(&ev);
@@ -277,7 +277,7 @@ static void do_noteoff(int chan, int pitch, int vol)
snd_seq_event_t ev;
if (verbose >= VERB_EVENT)
- printf("%d: NoteOff (%d) %d %d\n", Mf_currtime, chan, pitch, vol);
+ printf("%ld: NoteOff (%d) %d %d\n", Mf_currtime, chan, pitch, vol);
set_event_header(&ev);
snd_seq_ev_set_noteoff(&ev, chan, pitch, vol);
write_ev(&ev);
@@ -289,7 +289,7 @@ static void do_program(int chan, int program)
snd_seq_event_t ev;
if (verbose >= VERB_EVENT)
- printf("%d: Program (%d) %d\n", Mf_currtime, chan, program);
+ printf("%ld: Program (%d) %d\n", Mf_currtime, chan, program);
set_event_header(&ev);
snd_seq_ev_set_pgmchange(&ev, chan, program);
write_ev(&ev);
@@ -301,7 +301,7 @@ static void do_parameter(int chan, int control, int value)
snd_seq_event_t ev;
if (verbose >= VERB_EVENT)
- printf("%d: Control (%d) %d %d\n", Mf_currtime, chan, control, value);
+ printf("%ld: Control (%d) %d %d\n", Mf_currtime, chan, control, value);
set_event_header(&ev);
snd_seq_ev_set_controller(&ev, chan, control, value);
write_ev(&ev);
@@ -313,7 +313,7 @@ static void do_pitchbend(int chan, int lsb, int msb)
snd_seq_event_t ev;
if (verbose >= VERB_EVENT)
- printf("%d: Pitchbend (%d) %d %d\n", Mf_currtime, chan, lsb, msb);
+ printf("%ld: Pitchbend (%d) %d %d\n", Mf_currtime, chan, lsb, msb);
set_event_header(&ev);
snd_seq_ev_set_pitchbend(&ev, chan, (lsb + (msb << 7)) - 8192);
write_ev(&ev);
@@ -324,7 +324,7 @@ static void do_pressure(int chan, int pitch, int pressure)
snd_seq_event_t ev;
if (verbose >= VERB_EVENT)
- printf("%d: KeyPress (%d) %d %d\n", Mf_currtime, chan, pitch, pressure);
+ printf("%ld: KeyPress (%d) %d %d\n", Mf_currtime, chan, pitch, pressure);
set_event_header(&ev);
snd_seq_ev_set_keypress(&ev, chan, pitch, pressure);
write_ev(&ev);
@@ -335,7 +335,7 @@ static void do_chanpressure(int chan, int pressure)
snd_seq_event_t ev;
if (verbose >= VERB_EVENT)
- printf("%d: ChanPress (%d) %d\n", Mf_currtime, chan, pressure);
+ printf("%ld: ChanPress (%d) %d\n", Mf_currtime, chan, pressure);
set_event_header(&ev);
snd_seq_ev_set_chanpress(&ev, chan, pressure);
write_ev(&ev);
@@ -347,7 +347,7 @@ static void do_sysex(int len, char *msg)
if (verbose >= VERB_MUCH) {
int c;
- printf("%d: Sysex, len=%d\n", Mf_currtime, len);
+ printf("%ld: Sysex, len=%d\n", Mf_currtime, len);
for (c = 0; c < len; c++) {
printf(" %02x", (unsigned char)msg[c]);
if (c % 16 == 15)