From: notaz Date: Sat, 25 Dec 2010 00:47:26 +0000 (+0200) Subject: cdriso: add hack for cdda pausing X-Git-Tag: r1~5 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4a1e87d6a8f5d5de071344fd0718ca32a520850;p=pcsx_rearmed.git cdriso: add hack for cdda pausing --- diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index e68ecf3d..091fd668 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;