GBA Test: Fix gba-fuzz

This commit is contained in:
Jeffrey Pfau 2016-02-08 22:26:19 -08:00
parent 2af1bf68e0
commit 755c1c66af
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,8 @@ int main(int argc, char** argv) {
blip_set_rates(core->getAudioChannel(core, 0), GBA_ARM7TDMI_FREQUENCY, 0x8000);
blip_set_rates(core->getAudioChannel(core, 1), GBA_ARM7TDMI_FREQUENCY, 0x8000);
core->reset(core);
_GBAFuzzRunloop(core, fuzzOpts.frames);
core->unloadROM(core);
@ -142,6 +144,8 @@ int main(int argc, char** argv) {
static void _GBAFuzzRunloop(struct mCore* core, int frames) {
do {
core->runFrame(core);
blip_clear(core->getAudioChannel(core, 0));
blip_clear(core->getAudioChannel(core, 1));
} while (core->frameCounter(core) < frames && !_dispatchExiting);
}