Set the output buffer after loading state so the first set of samples

isn't excluded.
This commit is contained in:
Brandon Wright 2011-07-06 09:20:31 -05:00
parent baa4de3713
commit 4fdc7af7da
1 changed files with 2 additions and 0 deletions

View File

@ -630,6 +630,8 @@ void S9xAPULoadState (uint8 *block)
SNES::smp.load_state (&ptr);
SNES::dsp.load_state (&ptr);
SNES::dsp.spc_dsp.set_output ((SNES::SPC_DSP::sample_t *) spc::landing_buffer, spc::buffer_size >> 1);
spc::reference_time = SNES::get_le32(ptr);
ptr += sizeof(int32);
spc::remainder = SNES::get_le32(ptr);