cleanup, minor probably unnoticable fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3793 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
ec86152593
commit
7a82ae0943
|
@ -115,8 +115,6 @@ void CUCode_Zelda::RenderVoice_PCM16(ZeldaVoicePB &PB, s16 *_Buffer, int _Size)
|
||||||
{
|
{
|
||||||
int _RealSize = SizeForResampling(PB, _Size, PB.RatioInt);
|
int _RealSize = SizeForResampling(PB, _Size, PB.RatioInt);
|
||||||
int rem_samples = _RealSize;
|
int rem_samples = _RealSize;
|
||||||
// KeyOff doesn't seem to work the way it's done in PCM16, so let's try the way
|
|
||||||
// it really works in the ucode here...
|
|
||||||
if (PB.KeyOff)
|
if (PB.KeyOff)
|
||||||
goto clear_buffer;
|
goto clear_buffer;
|
||||||
if (PB.NeedsReset)
|
if (PB.NeedsReset)
|
||||||
|
@ -174,8 +172,6 @@ void CUCode_Zelda::RenderVoice_PCM8(ZeldaVoicePB &PB, s16 *_Buffer, int _Size)
|
||||||
{
|
{
|
||||||
int _RealSize = SizeForResampling(PB, _Size, PB.RatioInt);
|
int _RealSize = SizeForResampling(PB, _Size, PB.RatioInt);
|
||||||
int rem_samples = _RealSize;
|
int rem_samples = _RealSize;
|
||||||
// KeyOff doesn't seem to work the way it's done in PCM16, so let's try the way
|
|
||||||
// it really works in the ucode here...
|
|
||||||
if (PB.KeyOff)
|
if (PB.KeyOff)
|
||||||
goto clear_buffer;
|
goto clear_buffer;
|
||||||
if (PB.NeedsReset)
|
if (PB.NeedsReset)
|
||||||
|
@ -252,7 +248,11 @@ void CUCode_Zelda::RenderVoice_AFC(ZeldaVoicePB &PB, s16 *_Buffer, int _Size)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PB.KeyOff != 0) // 0747 early out... i dunno if this can happen because we filter it above
|
if (PB.KeyOff != 0) // 0747 early out... i dunno if this can happen because we filter it above
|
||||||
|
{
|
||||||
|
for (int i = 0; i < _RealSize; i++)
|
||||||
|
*_Buffer++ = 0;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Round upwards how many samples we need to copy, 0759
|
// Round upwards how many samples we need to copy, 0759
|
||||||
// u32 frac = NumberOfSamples & 0xF;
|
// u32 frac = NumberOfSamples & 0xF;
|
||||||
|
|
Loading…
Reference in New Issue