Mercurial > almixer_isolated
comparison EXAMPLES/playsound.c @ 57:b1e13d5688d1
Fixed bug in EXAMPLES where usleep was not converted to microseconds.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Tue, 29 May 2012 23:25:52 -0700 |
parents | eca6f008fad0 |
children |
comparison
equal
deleted
inserted
replaced
54:516da6d93534 | 57:b1e13d5688d1 |
---|---|
12 static void Internal_Delay(ALuint milliseconds_delay) | 12 static void Internal_Delay(ALuint milliseconds_delay) |
13 { | 13 { |
14 #if defined(_WIN32) | 14 #if defined(_WIN32) |
15 Sleep(milliseconds_delay); | 15 Sleep(milliseconds_delay); |
16 #else | 16 #else |
17 usleep(milliseconds_delay); | 17 usleep(milliseconds_delay*1000); |
18 #endif | 18 #endif |
19 } | 19 } |
20 #else | 20 #else |
21 #include "SDL.h" | 21 #include "SDL.h" |
22 #define Internal_Delay SDL_Delay | 22 #define Internal_Delay SDL_Delay |