mirror of https://github.com/PCSX2/pcsx2.git
SPU2: Fixes for Titeuf buzzing
This commit is contained in:
parent
5cf5f40c65
commit
f5e50d4571
|
@ -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)
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue