GBA Test: Fix gba-fuzz
Jeffrey Pfau jeffrey@endrift.com
Mon, 08 Feb 2016 22:26:19 -0800
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/platform/test/fuzz-main.c
→
src/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); }