SPU: Set block counter to zero on key on

Fixes clicking in Final Fantasy VIII intro FMV.
This commit is contained in:
Connor McLaughlin 2020-10-08 00:41:48 +10:00
parent 790a117371
commit 6a4a47fbdf
1 changed files with 1 additions and 0 deletions

View File

@ -1088,6 +1088,7 @@ bool SPU::StopDumpingAudio()
void SPU::Voice::KeyOn() void SPU::Voice::KeyOn()
{ {
current_address = regs.adpcm_start_address & ~u16(1); current_address = regs.adpcm_start_address & ~u16(1);
counter.bits = 0;
regs.adsr_volume = 0; regs.adsr_volume = 0;
adpcm_last_samples.fill(0); adpcm_last_samples.fill(0);
has_samples = false; has_samples = false;