all repos — mgba @ 755c1c66afce9e436238979c7f2b2180e5bddc6c

mGBA Game Boy Advance Emulator

GBA Test: Fix gba-fuzz
Jeffrey Pfau jeffrey@endrift.com
Mon, 08 Feb 2016 22:26:19 -0800
commit

755c1c66afce9e436238979c7f2b2180e5bddc6c

parent

2af1bf68e0a0833d368859d1c1bf4a04f8833552

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/platform/test/fuzz-main.csrc/platform/test/fuzz-main.c

@@ -119,6 +119,8 @@

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 @@

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); }