SPU2: Fixes for Titeuf buzzing

This commit is contained in:
refractionpcsx2 2021-01-02 18:09:59 +00:00
parent 5cf5f40c65
commit f5e50d4571
2 changed files with 7 additions and 1 deletions

View File

@ -142,7 +142,7 @@ StereoOut32 V_Core::ReadInput()
InputPosRead++; InputPosRead++;
if (((AutoDMACtrl & (Index + 1)) || AdmaInProgress) && (InputPosRead == 0x100 || InputPosRead == 0x200)) if ((AutoDMACtrl & (Index + 1)) && (InputPosRead == 0x100 || InputPosRead == 0x200))
{ {
AdmaInProgress = 0; AdmaInProgress = 0;
if (InputDataLeft >= 0x200) if (InputDataLeft >= 0x200)

View File

@ -1519,6 +1519,12 @@ static void __fastcall RegWrite_Core(u16 value)
return; return;
} }
thiscore.AutoDMACtrl = value; thiscore.AutoDMACtrl = value;
if (value == 0 && thiscore.AdmaInProgress && (thiscore.Regs.STATX & 0x400))
{
thiscore.InputDataProgress = 0;
thiscore.ReadSize = 0;
thiscore.DMAICounter = 1;
}
break; break;
default: default: