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
This commit is contained in:
sudonim1@gmail.com 2011-06-11 19:24:49 +00:00
parent 9036280455
commit ae004d5e58
1 changed files with 4 additions and 0 deletions

View File

@ -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: