mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
DSPLLE - "Super mario all star 25th anniversary" audio fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7474 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -259,11 +259,10 @@ void Init(bool hle)
|
|||||||
|
|
||||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bWii)
|
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bWii)
|
||||||
{
|
{
|
||||||
// On the Wii, ARAM is simply mapped to EXRAM.
|
|
||||||
g_ARAM.wii_mode = true;
|
g_ARAM.wii_mode = true;
|
||||||
g_ARAM.size = Memory::EXRAM_SIZE;
|
g_ARAM.size = Memory::EXRAM_SIZE;
|
||||||
g_ARAM.mask = Memory::EXRAM_MASK;
|
g_ARAM.mask = Memory::EXRAM_MASK;
|
||||||
g_ARAM.ptr = Memory::GetPointer(0x10000000);
|
g_ARAM.ptr = Memory::GetPointer(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -725,11 +724,12 @@ void Do_ARAM_DMA()
|
|||||||
|
|
||||||
// (shuffle2) I still don't believe that this hack is actually needed... :(
|
// (shuffle2) I still don't believe that this hack is actually needed... :(
|
||||||
// Maybe the wii sports ucode is processed incorrectly?
|
// Maybe the wii sports ucode is processed incorrectly?
|
||||||
|
// (LM) It just means that dsp reads via '0xffdd' on WII can end up in EXRAM or main RAM
|
||||||
u8 ReadARAM(u32 _iAddress)
|
u8 ReadARAM(u32 _iAddress)
|
||||||
{
|
{
|
||||||
//NOTICE_LOG(DSPINTERFACE, "ReadARAM 0x%08x (0x%08x)", _iAddress, _iAddress & g_ARAM.mask);
|
//NOTICE_LOG(DSPINTERFACE, "ReadARAM 0x%08x (0x%08x)", _iAddress, _iAddress & (0x10000000 | g_ARAM.mask));
|
||||||
if (g_ARAM.wii_mode && _iAddress < Memory::REALRAM_SIZE)
|
if (g_ARAM.wii_mode)
|
||||||
return Memory::Read_U8(_iAddress);
|
return g_ARAM.ptr[(_iAddress & 0x10000000)?(_iAddress & 0x13ffffff):(_iAddress & 0x01ffffff)];
|
||||||
else
|
else
|
||||||
return g_ARAM.ptr[_iAddress & g_ARAM.mask];
|
return g_ARAM.ptr[_iAddress & g_ARAM.mask];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user