(svn r2984) Use adequate types, this should aid portability a bit

This commit is contained in:
tron
2005-09-25 09:04:59 +00:00
parent 03ad234d47
commit c2c865e4b9
7 changed files with 14 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ static struct {
bool playing;
int new_vol;
HANDLE wait_obj;
uint devid;
UINT_PTR devid;
char start_song[260];
} _midi;
@@ -44,7 +44,7 @@ static void Win32MidiSetVolume(byte vol)
SetEvent(_midi.wait_obj);
}
static long CDECL MidiSendCommand(const char *cmd, ...) {
static MCIERROR CDECL MidiSendCommand(const char *cmd, ...) {
va_list va;
char buf[512];
@@ -72,7 +72,7 @@ static void MidiIntStopSong(void)
static void MidiIntSetVolume(int vol)
{
uint v = (vol * 65535 / 127);
DWORD v = (vol * 65535 / 127);
midiOutSetVolume((HMIDIOUT)_midi.devid, v + (v << 16));
}
@@ -128,7 +128,8 @@ static const char *Win32MidiStart(const char * const *parm)
{
MIDIOUTCAPS midicaps;
DWORD threadId;
uint dev, nbdev;
UINT nbdev;
UINT_PTR dev;
char buf[16];
mciSendStringA("capability sequencer has audio", buf, lengthof(buf), 0);