fix for silly crash in wii mode

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1117 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2008-11-10 23:21:05 +00:00
parent 48bce5a05a
commit 7c1bd6bc6c
1 changed files with 1 additions and 2 deletions

View File

@ -188,12 +188,11 @@ inline void MixAddVoice(ParamBlockType &pb, int *templbuffer, int *temprbuffer,
} // end of the _iSize loop
// Update volume
if(m_frame->gVolume) // allow us to turn this off in the debugger
if (sizeof(ParamBlockType) == sizeof(AXParamBlock) && m_frame->gVolume) // allow us to turn this off in the debugger
{
pb.mixer.volume_left = ADPCM_Vol(pb.mixer.volume_left, pb.mixer.unknown, pb.mixer_control);
pb.mixer.volume_right = ADPCM_Vol(pb.mixer.volume_right, pb.mixer.unknown2, pb.mixer_control);
}
pb.src.cur_addr_frac = (u16)frac;
pb.audio_addr.cur_addr_hi = samplePos >> 16;