cdriso: add hack for cdda pausing
authornotaz <notasas@gmail.com>
Sat, 25 Dec 2010 00:47:26 +0000 (02:47 +0200)
committernotaz <notasas@gmail.com>
Sat, 25 Dec 2010 00:47:26 +0000 (02:47 +0200)
libpcsxcore/cdriso.c

index e68ecf3..091fd66 100644 (file)
@@ -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;