mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-12 06:25:47 -04:00
SPU: Reset ADPCM decoder last samples on key on
This commit is contained in:
@ -1052,6 +1052,7 @@ void SPU::Voice::KeyOn()
|
|||||||
{
|
{
|
||||||
current_address = regs.adpcm_start_address & ~u16(1);
|
current_address = regs.adpcm_start_address & ~u16(1);
|
||||||
regs.adsr_volume = 0;
|
regs.adsr_volume = 0;
|
||||||
|
adpcm_last_samples.fill(0);
|
||||||
has_samples = false;
|
has_samples = false;
|
||||||
ignore_loop_address = false;
|
ignore_loop_address = false;
|
||||||
SetADSRPhase(ADSRPhase::Attack);
|
SetADSRPhase(ADSRPhase::Attack);
|
||||||
|
Reference in New Issue
Block a user