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:
hrydgard 2009-07-14 22:39:34 +00:00
parent ec86152593
commit 7a82ae0943
1 changed files with 4 additions and 4 deletions

View File

@ -115,8 +115,6 @@ void CUCode_Zelda::RenderVoice_PCM16(ZeldaVoicePB &PB, s16 *_Buffer, int _Size)
{
int _RealSize = SizeForResampling(PB, _Size, PB.RatioInt);
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)
goto clear_buffer;
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 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)
goto clear_buffer;
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
{
for (int i = 0; i < _RealSize; i++)
*_Buffer++ = 0;
return;
}
// Round upwards how many samples we need to copy, 0759
// u32 frac = NumberOfSamples & 0xF;