]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cd_win.c
darkplaces now compiles in mingw
[xonotic/darkplaces.git] / cd_win.c
index 7766e552601594732b27974af21c3b3b2e5df115..5b35239f4a0615458415e45e3a1a50e64778ba9a 100644 (file)
--- a/cd_win.c
+++ b/cd_win.c
@@ -27,16 +27,16 @@ extern      HWND    mainwindow;
 
 qboolean cdaudioinitialized = false;
 static qboolean cdValid = false;
-static qboolean        playing = false;
-static qboolean        wasPlaying = false;
-static qboolean        initialized = false;
-static qboolean        enabled = false;
+static qboolean playing = false;
+static qboolean wasPlaying = false;
+static qboolean initialized = false;
+static qboolean enabled = false;
 static qboolean playLooping = false;
-static float   cdvolume;
-static byte    remap[100];
-static byte            cdrom;
-static byte            playTrack;
-static byte            maxTrack;
+static float cdvolume;
+static qbyte remap[100];
+static qbyte cdrom;
+static qbyte playTrack;
+static qbyte maxTrack;
 
 UINT   wDeviceID;
 
@@ -100,7 +100,7 @@ static int CDAudio_GetAudioDiskInfo(void)
 }
 
 
-void CDAudio_Play(byte track, qboolean looping)
+void CDAudio_Play(qbyte track, qboolean looping)
 {
        DWORD                           dwReturn;
     MCI_PLAY_PARMS             mciPlayParms;
@@ -309,13 +309,13 @@ static void CD_f (void)
 
        if (Q_strcasecmp(command, "play") == 0)
        {
-               CDAudio_Play((byte)atoi(Cmd_Argv (2)), false);
+               CDAudio_Play((qbyte)atoi(Cmd_Argv (2)), false);
                return;
        }
 
        if (Q_strcasecmp(command, "loop") == 0)
        {
-               CDAudio_Play((byte)atoi(Cmd_Argv (2)), true);
+               CDAudio_Play((qbyte)atoi(Cmd_Argv (2)), true);
                return;
        }