From b542dc1a818b994108da42b6626013af8fe08f65 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Mon, 25 May 2009 05:55:13 +0000 Subject: reformat svn path=/trunk/; revision=11494 --- desiredata/src/s_midi_mmio.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'desiredata/src/s_midi_mmio.c') diff --git a/desiredata/src/s_midi_mmio.c b/desiredata/src/s_midi_mmio.c index e4310680..c694a4f3 100644 --- a/desiredata/src/s_midi_mmio.c +++ b/desiredata/src/s_midi_mmio.c @@ -48,7 +48,7 @@ static void msw_midiouterror(char *s, int err) { } static HMIDIOUT hMidiOut[MAXMIDIOUTDEV]; /* output device */ -static int msw_nmidiout; /* number of devices */ +static int msw_nmidiout; /* number of devices */ static void msw_open_midiout(int nmidiout, int *midioutvec) { UINT result, wRtn; @@ -425,17 +425,12 @@ void sys_poll_midi() { int byte2 = (msw_nextevent.data >> 16) & 0xff; int portno = msw_nextevent.dwDevice; switch (msgtype) { - case 0: - case 1: - case 2: - case 3: - case 6: + case 0: case 1: case 2: case 3: case 6: sys_midibytein(portno, commandbyte); sys_midibytein(portno, byte1); sys_midibytein(portno, byte2); break; - case 4: - case 5: + case 4: case 5: sys_midibytein(portno, commandbyte); sys_midibytein(portno, byte1); break; @@ -465,17 +460,16 @@ void sys_close_midi() { /* list the audio and MIDI device names */ void sys_listmididevs() { UINT wRtn, ndevices; - unsigned int i; /* for MIDI and audio in and out, get the number of devices. Then get the capabilities of each device and print its description. */ ndevices = midiInGetNumDevs(); - for (i = 0; i < ndevices; i++) { + for (unsigned i=0; i maxndev) nin = maxndev; - for (i = 0; i < nin; i++) { + for (int i=0; i maxndev) nout = maxndev; - for (i = 0; i < nout; i++) { + for (int i=0; i