From: twinaphex Date: Sun, 1 Nov 2015 09:25:51 +0000 (+0100) Subject: Attempt to avod build errors for Mingw X-Git-Tag: r24l~865 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce36c10b348009c13282048540d6d9c553bbcc96;p=pcsx_rearmed.git Attempt to avod build errors for Mingw --- diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index 09aed17d..46ee0207 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -30,7 +30,7 @@ #include #include #define strcasecmp _stricmp -#define usleep(x) Sleep((x) / 1000) +#define usleep(x) (Sleep((x) / 1000)) #else #include #include @@ -223,7 +223,9 @@ static void *playthread(void *param) do { ret = SPU_playCDDAchannel((short *)sndbuffer, s); if (ret == 0x7761) + { usleep(6 * 1000); + } } while (ret == 0x7761 && playing); // rearmed_wait } @@ -234,7 +236,9 @@ static void *playthread(void *param) // HACK: stop feeding data while emu is paused extern int stop; while (stop && playing) + { usleep(10000); + } now = GetTickCount(); osleep = t - now;