aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authortwinaphex2015-11-01 10:25:51 +0100
committertwinaphex2015-11-01 10:25:51 +0100
commitce36c10b348009c13282048540d6d9c553bbcc96 (patch)
tree96a91ed4f5f67c748dde70464f4b464642d97504 /libpcsxcore
parent5c166f3762810e337ee65c411fcd5f787097ff1e (diff)
downloadpcsx_rearmed-ce36c10b348009c13282048540d6d9c553bbcc96.tar.gz
pcsx_rearmed-ce36c10b348009c13282048540d6d9c553bbcc96.tar.bz2
pcsx_rearmed-ce36c10b348009c13282048540d6d9c553bbcc96.zip
Attempt to avod build errors for Mingw
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/cdriso.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index 09aed17..46ee020 100644
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -30,7 +30,7 @@
#include <process.h>
#include <windows.h>
#define strcasecmp _stricmp
-#define usleep(x) Sleep((x) / 1000)
+#define usleep(x) (Sleep((x) / 1000))
#else
#include <pthread.h>
#include <sys/time.h>
@@ -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;