From 210476c77ec6d0160e66ab6e9a45ad64fe5e50ce Mon Sep 17 00:00:00 2001 From: gameblabla Date: Thu, 7 Mar 2019 20:47:17 +0100 Subject: Diablo Music fix for PCSX Rearmed. (optional hack) Let's also allow it to be changed from the menu. Set to off by default as it could cause issues in some other games. --- plugins/dfsound/registers.c | 2 +- plugins/dfsound/spu_config.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/dfsound/registers.c b/plugins/dfsound/registers.c index 91bcaf8..bb64658 100644 --- a/plugins/dfsound/registers.c +++ b/plugins/dfsound/registers.c @@ -352,7 +352,7 @@ static void SoundOn(int start,int end,unsigned short val) if((val&1) && regAreaGet(ch,6)) // mmm... start has to be set before key on !?! { spu.s_chan[ch].pCurr=spu.spuMemC+((regAreaGet(ch,6)&~1)<<3); // must be block aligned - spu.s_chan[ch].pLoop=spu.spuMemC+((regAreaGet(ch,14)&~1)<<3); + if (spu_config.idiablofix == 0) spu.s_chan[ch].pLoop=spu.spuMemC+((regAreaGet(ch,14)&~1)<<3); spu.dwNewChannel|=(1<