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;
}