From 94d6aaf4bb293256f12b83a402ec9e21bb768c0f Mon Sep 17 00:00:00 2001 From: "sudonim1@gmail.com" Date: Wed, 15 Jun 2011 00:57:04 +0000 Subject: [PATCH] SPU2-X: Flag effect area for updating on effect area register writes rather than core attributes change. (For change in testing. Committing separately for regression testing purposes.) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4744 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/spu2sys.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/spu2-x/src/spu2sys.cpp b/plugins/spu2-x/src/spu2sys.cpp index dbc68624a8..17178d40ec 100644 --- a/plugins/spu2-x/src/spu2sys.cpp +++ b/plugins/spu2-x/src/spu2sys.cpp @@ -899,7 +899,6 @@ static void __fastcall RegWrite_Core( u16 value ) case REG_C_ATTR: { - bool fxenable = thiscore.FxEnable; bool irqe = thiscore.IRQEnable; int bit0 = thiscore.AttrBit0; u8 oldDmaMode = thiscore.DmaMode; @@ -915,9 +914,6 @@ static void __fastcall RegWrite_Core( u16 value ) thiscore.CoreEnabled=(value>>15) & 0x01; //1 bit thiscore.Regs.ATTR =value&0x7fff; - if (!fxenable && thiscore.FxEnable) - thiscore.RevBuffers.NeedsUpdated = true; - if(oldDmaMode != thiscore.DmaMode) { // FIXME... maybe: if this mode was cleared in the middle of a DMA, should we interrupt it? @@ -1089,6 +1085,7 @@ static void __fastcall RegWrite_Core( u16 value ) { SetHiWord( thiscore.EffectsStartA, value ); thiscore.ReverbX = 0; + thiscore.RevBuffers.NeedsUpdated = true; } break; @@ -1097,6 +1094,7 @@ static void __fastcall RegWrite_Core( u16 value ) { SetLoWord( thiscore.EffectsStartA, value ); thiscore.ReverbX = 0; + thiscore.RevBuffers.NeedsUpdated = true; } break; @@ -1105,6 +1103,7 @@ static void __fastcall RegWrite_Core( u16 value ) { thiscore.EffectsEndA = ((u32)value<<16) | 0xFFFF; thiscore.ReverbX = 0; + thiscore.RevBuffers.NeedsUpdated = true; } break;