diff options
author | N.N. <matju@users.sourceforge.net> | 2009-05-25 16:36:06 +0000 |
---|---|---|
committer | N.N. <matju@users.sourceforge.net> | 2009-05-25 16:36:06 +0000 |
commit | 08f677e7b5ffb28aaf8b041020addc9e8837b8c1 (patch) | |
tree | 5da7be92ab6cab7ebe66634dc1d6eccd97355e53 | |
parent | 7862fdca760b0497b1511d6c06123c4ab5c59421 (diff) |
fix 3 warnings
svn path=/trunk/; revision=11500
-rw-r--r-- | desiredata/src/s_midi_mmio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desiredata/src/s_midi_mmio.c b/desiredata/src/s_midi_mmio.c index c694a4f3..a986b28c 100644 --- a/desiredata/src/s_midi_mmio.c +++ b/desiredata/src/s_midi_mmio.c @@ -6,7 +6,7 @@ #include "s_stuff.h" #include <stdio.h> #include <windows.h> -#include <MMSYSTEM.H> +#include <mmsystem.h> /* ------------- MIDI time stamping from audio clock ------------ */ #ifdef MIDI_TIMESTAMP @@ -41,7 +41,7 @@ static double msw_midigettimefor(LARGE_INTEGER timestamp) { #endif /* MIDI_TIMESTAMP */ /* ------------------------- MIDI output -------------------------- */ -static void msw_midiouterror(char *s, int err) { +static void msw_midiouterror(const char *s, int err) { char t[256]; midiOutGetErrorText(err, t, 256); error(s,t); @@ -83,7 +83,7 @@ static void msw_close_midiout() { #define INPUT_BUFFER_SIZE 1000 // size of input buffer in events -static void msw_midiinerror(char *s, int err) { +static void msw_midiinerror(const char *s, int err) { char t[256]; midiInGetErrorText(err, t, 256); error(s,t); @@ -479,7 +479,7 @@ void sys_listmididevs() { #endif void midi_getdevs(char *indevlist, int *nindevs, char *outdevlist, int *noutdevs, int maxndev, int devdescsize) { - int i, nin = midiInGetNumDevs(), nout = midiOutGetNumDevs(); + int nin = midiInGetNumDevs(), nout = midiOutGetNumDevs(); UINT wRtn; if (nin > maxndev) nin = maxndev; for (int i=0; i<nin; i++) { |