aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotaz2010-12-25 02:47:26 +0200
committernotaz2010-12-25 02:47:26 +0200
commitd4a1e87d6a8f5d5de071344fd0718ca32a520850 (patch)
treecb6394c4a56cf232a7e4aa22309d814e66d0fc93
parent0d8f5b891a7b56e94e15930ea2a8748b1033cd5f (diff)
downloadpcsx_rearmed-d4a1e87d6a8f5d5de071344fd0718ca32a520850.tar.gz
pcsx_rearmed-d4a1e87d6a8f5d5de071344fd0718ca32a520850.tar.bz2
pcsx_rearmed-d4a1e87d6a8f5d5de071344fd0718ca32a520850.zip
cdriso: add hack for cdda pausing
-rw-r--r--libpcsxcore/cdriso.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index e68ecf3..091fd66 100644
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -159,6 +159,12 @@ static void *playthread(void *param)
#else
usleep(d * 1000);
#endif
+ // HACK: stop feeding data while emu is paused
+ extern int stop;
+ if (stop) {
+ usleep(100000);
+ continue;
+ }
t = GetTickCount() + CDDA_FRAMETIME;