Small change
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@835 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
3043bd6003
commit
be39c869cc
|
@ -263,7 +263,7 @@ void CUCode_AX::Logging(short* _pBuffer, int _iSize, int a)
|
||||||
{
|
{
|
||||||
|
|
||||||
AXParamBlock PBs[NUMBER_OF_PBS];
|
AXParamBlock PBs[NUMBER_OF_PBS];
|
||||||
int numberOfPBs = ReadOutPBs(PBs, NUMBER_OF_PBS);
|
int numberOfPBs = ReadOutPBs(0, PBs, NUMBER_OF_PBS);
|
||||||
|
|
||||||
|
|
||||||
// =======================================================================================
|
// =======================================================================================
|
||||||
|
|
|
@ -171,7 +171,7 @@ void CUCode_AX::MixAdd(short* _pBuffer, int _iSize)
|
||||||
memset(temprbuffer, 0, _iSize * sizeof(int));
|
memset(temprbuffer, 0, _iSize * sizeof(int));
|
||||||
|
|
||||||
// read out pbs
|
// read out pbs
|
||||||
int numberOfPBs = ReadOutPBs(PBs, NUMBER_OF_PBS);
|
int numberOfPBs = ReadOutPBs(1, PBs, NUMBER_OF_PBS);
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ratioFactor = 32000.0f / (float)DSound::DSound_GetSampleRate();
|
ratioFactor = 32000.0f / (float)DSound::DSound_GetSampleRate();
|
||||||
|
@ -694,7 +694,7 @@ bool CUCode_AX::AXTask(u32& _uMail)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CUCode_AX::ReadOutPBs(AXParamBlock* _pPBs, int _num)
|
int CUCode_AX::ReadOutPBs(int a, AXParamBlock* _pPBs, int _num)
|
||||||
{
|
{
|
||||||
int count = 0;
|
int count = 0;
|
||||||
u32 blockAddr = m_addressPBs;
|
u32 blockAddr = m_addressPBs;
|
||||||
|
@ -719,6 +719,8 @@ int CUCode_AX::ReadOutPBs(AXParamBlock* _pPBs, int _num)
|
||||||
// ---------------------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------------------
|
||||||
// Make the updates we are told to do
|
// Make the updates we are told to do
|
||||||
// ------------
|
// ------------
|
||||||
|
if(a) // only do this once every 5 ms
|
||||||
|
{
|
||||||
u16 upd_hi = pDest[39];
|
u16 upd_hi = pDest[39];
|
||||||
u16 upd_lo = pDest[40];
|
u16 upd_lo = pDest[40];
|
||||||
const u32 updaddr = (u32)(upd_hi << 16) | upd_lo;
|
const u32 updaddr = (u32)(upd_hi << 16) | upd_lo;
|
||||||
|
@ -732,6 +734,7 @@ int CUCode_AX::ReadOutPBs(AXParamBlock* _pPBs, int _num)
|
||||||
{
|
{
|
||||||
pDest[updpar] = upddata;
|
pDest[updpar] = upddata;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//aprintf(1, "%08x %04x %04x\n", updaddr, updpar, upddata);
|
//aprintf(1, "%08x %04x %04x\n", updaddr, updpar, upddata);
|
||||||
// ------------
|
// ------------
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ private:
|
||||||
bool AXTask(u32& _uMail);
|
bool AXTask(u32& _uMail);
|
||||||
|
|
||||||
void SendMail(u32 _uMail);
|
void SendMail(u32 _uMail);
|
||||||
int ReadOutPBs(AXParamBlock *_pPBs, int _num);
|
int ReadOutPBs(int a, AXParamBlock *_pPBs, int _num);
|
||||||
void WriteBackPBs(AXParamBlock *_pPBs, int _num);
|
void WriteBackPBs(AXParamBlock *_pPBs, int _num);
|
||||||
s16 ADPCM_Step(AXParamBlock& pb, u32& samplePos, u32 newSamplePos, u16 frac);
|
s16 ADPCM_Step(AXParamBlock& pb, u32& samplePos, u32 newSamplePos, u16 frac);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue