]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_sdl.c
implemented threaded audio mixing for SDL client (required some
[xonotic/darkplaces.git] / sys_sdl.c
index 702cfaf881a85c7c801c72b22e476723f89af3af..72c5953a6429ea823ab58a88662bb1084a2fe323 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -1,3 +1,4 @@
+#include "quakedef.h"
 
 #ifdef WIN32
 #include <io.h>
@@ -10,8 +11,6 @@
 
 #include <signal.h>
 
-#include "quakedef.h"
-
 #include <SDL.h>
 
 // =======================================================================
@@ -155,11 +154,9 @@ char *Sys_ConsoleInput(void)
        return NULL;
 }
 
-void Sys_Sleep(int milliseconds)
+void Sys_Sleep(int microseconds)
 {
-       if (milliseconds < 1)
-               milliseconds = 1;
-       SDL_Delay(milliseconds);
+       SDL_Delay(microseconds / 1000);
 }
 
 char *Sys_GetClipboardData (void)