mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-10 21:44:28 +00:00
Re-added the ARAM DMA exception check. This fixes the audio cutting in and out of Resident Evil 2 and 3. Removed the special case for short transfers as it is no longer required.
This commit is contained in:
parent
d09e2abb0d
commit
0f256715e0
@ -532,14 +532,10 @@ void UpdateAudioDMA()
|
|||||||
static void Do_ARAM_DMA()
|
static void Do_ARAM_DMA()
|
||||||
{
|
{
|
||||||
g_dspState.DSPControl.DMAState = 1;
|
g_dspState.DSPControl.DMAState = 1;
|
||||||
if (g_arDMA.Cnt.count == 32)
|
CoreTiming::ScheduleEvent_Threadsafe(0, et_CompleteARAM);
|
||||||
{
|
|
||||||
CompleteARAM(0, 0);
|
// Force an early exception check on large transfers. Fixes RE2 audio.
|
||||||
}
|
CoreTiming::ForceExceptionCheck(250);
|
||||||
else
|
|
||||||
{
|
|
||||||
CoreTiming::ScheduleEvent_Threadsafe(0, et_CompleteARAM);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Real hardware DMAs in 32byte chunks, but we can get by with 8byte chunks
|
// Real hardware DMAs in 32byte chunks, but we can get by with 8byte chunks
|
||||||
if (g_arDMA.Cnt.dir)
|
if (g_arDMA.Cnt.dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user