updated dsp null some clean up as well.

Please test on windows


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2018 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-01-26 16:58:01 +00:00
parent 356db07cbf
commit 52deb12599
6 changed files with 919 additions and 923 deletions

View File

@ -11,6 +11,7 @@ files = [
"main.cpp",
"Globals.cpp",
"UCodes/UCode_AX.cpp",
"UCodes/UCode_AXWii.cpp",
"UCodes/UCode_CARD.cpp",
"UCodes/UCode_InitAudioSystem.cpp",
"UCodes/UCode_Jac.cpp",

View File

@ -17,7 +17,6 @@
#include "FileUtil.h" // For IsDirectory()
#include "StringUtil.h" // For StringFromFormat()
#include <sstream>
#include "../MailHandler.h"
@ -27,7 +26,6 @@
#include "UCode_AX.h"
#include "UCode_AX_Voice.h"
// ------------------------------------------------------------------
// Externals
// -----------
@ -97,6 +95,7 @@ void CUCode_AX::SaveLog_(bool Wii, const char* _fmt, va_list ap)
TmpMailLog += Msg;
TmpMailLog += "\n";
}
// ----------------
@ -125,6 +124,7 @@ int ReadOutPBs(u32 pbs_address, AXParamBlock* _pPBs, int _num)
for (size_t p = 0; p < sizeof(AXParamBlock) / 2; p++)
{
pDest[p] = Common::swap16(pSrc[p]);
}
blockAddr = (_pPBs[i].next_pb_hi << 16) | _pPBs[i].next_pb_lo;
count++;
@ -236,6 +236,7 @@ void CUCode_AX::MixAdd(short* _pBuffer, int _iSize)
*_pBuffer++ = left;
*_pBuffer++ = right;
}
}
@ -343,7 +344,6 @@ bool CUCode_AX::AXTask(u32& _uMail)
m_addressPBs = Memory_Read_U32(uAddress);
uAddress += 4;
SaveLog("%08x : AXLIST PB address: %08x", uAddress, m_addressPBs);
}
break;

View File

@ -102,8 +102,6 @@ void CUCode_AXWii::MixAdd_(short* _pBuffer, int _iSize, ParamBlockType &PBs)
// -------------------------------------------
// write logging data to debugger
// ---------------------------------------------------------------------------------------
/* Make the updates we are told to do. See comments to the GC version in UCode_AX.cpp */
// ------------
for (int i = 0; i < numberOfPBs; i++)
@ -205,7 +203,6 @@ bool CUCode_AXWii::AXTask(u32& _uMail)
// u32 Addr__9;
bool bExecuteList = true;
if (false)
{
// PanicAlert("%i", sizeof(AXParamBlockWii)); // 252 ??
@ -242,7 +239,6 @@ bool CUCode_AXWii::AXTask(u32& _uMail)
{
u32 address = Memory_Read_U32(uAddress);
uAddress += 4;
SaveLog("%08x : AXLIST 1: %08x", uAddress, address);
}
break;
@ -250,14 +246,13 @@ bool CUCode_AXWii::AXTask(u32& _uMail)
{
u32 address = Memory_Read_U32(uAddress);
uAddress += 4;
SaveLog("%08x : AXLIST 3: %08x", uAddress, address);
}
break;
case 0x0004: // PBs are here now
m_addressPBs = Memory_Read_U32(uAddress);
lCUCode_AX->m_addressPBs = m_addressPBs; // for the sake of logging
SaveLog("%08x : AXLIST PB address: %08x", uAddress, m_addressPBs);
uAddress += 4;
break;
@ -270,7 +265,6 @@ bool CUCode_AXWii::AXTask(u32& _uMail)
uAddress += 4;
uAddress += 2;
SaveLog("%08x : AXLIST 5_1 5_2 addresses: %08x %08x", uAddress, Addr__5_1, Addr__5_2);
}
else
{

View File

@ -54,6 +54,7 @@ inline int ReadOutPBsWii(u32 pbs_address, ParamBlockType& _pPBs, int _num)
{
if(p == 6 || p == 7) pDest[p] = pSrc[p]; // control for the u32
else pDest[p] = Common::swap16(pSrc[p]);
}
_pPBs[i].mixer_control = Common::swap32(_pPBs[i].mixer_control);