DS: Fix audio speed issues

This commit is contained in:
Vicki Pfau 2021-07-02 03:21:08 -07:00
parent 00f1229ea2
commit e4d9ade08e
1 changed files with 4 additions and 3 deletions

View File

@ -436,6 +436,10 @@ static void DSProcessEvents(struct DSCommon* dscore) {
} while (ds->cpuBlocked && !ds->earlyExit);
cpu->nextEvent = nextEvent;
if (ds->earlyExit) {
break;
}
if (cpu->halted) {
cpu->cycles = nextEvent;
}
@ -444,9 +448,6 @@ static void DSProcessEvents(struct DSCommon* dscore) {
mLOG(DS, FATAL, "Negative cycles will pass: %i", nextEvent);
}
#endif
if (ds->earlyExit) {
break;
}
}
ds->earlyExit = false;
if (ds->cpuBlocked) {