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);
|
} 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) {
|
||||||
|
|
Loading…
Reference in New Issue