From e3788c39e49876fd639e83b5de6efef01c5b9588 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Mon, 27 Jun 2011 16:28:45 -0500 Subject: [PATCH] Zero clock at appropriate times. --- apu/bapu/dsp/sdsp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apu/bapu/dsp/sdsp.cpp b/apu/bapu/dsp/sdsp.cpp index ef2c48da..0fe01476 100644 --- a/apu/bapu/dsp/sdsp.cpp +++ b/apu/bapu/dsp/sdsp.cpp @@ -11,11 +11,13 @@ void DSP::power() { spc_dsp.init(smp.apuram); spc_dsp.reset(); + clock = 0; } void DSP::reset() { spc_dsp.soft_reset(); + clock = 0; } static void from_dsp_to_state (uint8 **buf, void *var, size_t size) @@ -42,6 +44,7 @@ void DSP::load_state (uint8 **ptr) DSP::DSP() { + clock = 0; } }