]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Turbo CD mode should only affect data reads.
authorToni Wilen <twilen@winuae.net>
Sun, 12 May 2019 17:10:00 +0000 (20:10 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 12 May 2019 17:10:00 +0000 (20:10 +0300)
akiko.cpp

index 1202961ddf56281e71c8482fabac80f2bf120c28..fd722bf78562eb638dfe8a6dbdb57dc1a7bfb59b 100644 (file)
--- a/akiko.cpp
+++ b/akiko.cpp
@@ -1414,17 +1414,21 @@ void AKIKO_hsync_handler (void)
        if (!currprefs.cs_cd32cd || !akiko_inited)
                return;
 
-       static float framecounter;
-       framecounter--;
-       if (framecounter <= 0) {
+       static float framecounter1, framecounter2;
+       framecounter1--;
+       if (framecounter1 <= 0) {
                if (cdrom_seek_delay <= 0) {
-                       cdrom_run_read ();
+                       cdrom_run_read();
                } else {
                        cdrom_seek_delay--;
                }
-               framecounter += (float)maxvpos * vblank_hz / (75.0 * cdrom_speed);
+               framecounter1 += (float)maxvpos * vblank_hz / (75.0 * cdrom_speed);
                if (currprefs.cd_speed == 0 || currprefs.turbo_emulation)
-                       framecounter = 1;
+                       framecounter1 = 1;
+       }
+       framecounter2--;
+       if (framecounter2 <= 0) {
+               framecounter2 += (float)maxvpos * vblank_hz / (75.0 * cdrom_speed);
                framesync = true;
        }