comparison EXAMPLES/playstream.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 ee50db043251
children 20a687a4d4e0
comparison
equal deleted inserted replaced
54:516da6d93534 57:b1e13d5688d1
13 static void Internal_Delay(ALuint milliseconds_delay) 13 static void Internal_Delay(ALuint milliseconds_delay)
14 { 14 {
15 #if defined(_WIN32) 15 #if defined(_WIN32)
16 Sleep(milliseconds_delay); 16 Sleep(milliseconds_delay);
17 #else 17 #else
18 usleep(milliseconds_delay); 18 usleep(milliseconds_delay*1000);
19 #endif 19 #endif
20 } 20 }
21 #else 21 #else
22 #include "SDL.h" 22 #include "SDL.h"
23 #define Internal_Delay SDL_Delay 23 #define Internal_Delay SDL_Delay