mirror of https://github.com/mgba-emu/mgba.git
DS: Fix audio speed issues
This commit is contained in:
parent
00f1229ea2
commit
e4d9ade08e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue