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