From ae004d5e58e1e750a7b8c751ec6d8a64901a1edf Mon Sep 17 00:00:00 2001 From: "sudonim1@gmail.com" Date: Sat, 11 Jun 2011 19:24:49 +0000 Subject: [PATCH] SPU2-X: partial and probably incorrect (but good enough for the BIOS) support for reading back key on and key off registers, just returning the last written value. We need testing to determine how these actually behave and want to do some game testing to find other partially implemented registers before that. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4727 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/spu2sys.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/spu2-x/src/spu2sys.cpp b/plugins/spu2-x/src/spu2sys.cpp index 116ed855a7..dbc68624a8 100644 --- a/plugins/spu2-x/src/spu2sys.cpp +++ b/plugins/spu2-x/src/spu2sys.cpp @@ -1049,18 +1049,22 @@ static void __fastcall RegWrite_Core( u16 value ) case (REG_S_KON + 2): StartVoices(core,((u32)value)<<16); + spu2regs[omem >> 1 | core * 0x200] = value; break; case REG_S_KON: StartVoices(core,((u32)value)); + spu2regs[omem >> 1 | core * 0x200] = value; break; case (REG_S_KOFF + 2): StopVoices(core,((u32)value)<<16); + spu2regs[omem >> 1 | core * 0x200] = value; break; case REG_S_KOFF: StopVoices(core,((u32)value)); + spu2regs[omem >> 1 | core * 0x200] = value; break; case REG_S_ENDX: