From 7c1bd6bc6ce834dc49aad4d3c2fd28190b1afbb5 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Mon, 10 Nov 2008 23:21:05 +0000 Subject: [PATCH] fix for silly crash in wii mode git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1117 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h index ac3dbd0c8d..6cac2f18b9 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h +++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h @@ -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;