mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
9036280455
commit
ae004d5e58
|
@ -1049,18 +1049,22 @@ static void __fastcall RegWrite_Core( u16 value )
|
||||||
|
|
||||||
case (REG_S_KON + 2):
|
case (REG_S_KON + 2):
|
||||||
StartVoices(core,((u32)value)<<16);
|
StartVoices(core,((u32)value)<<16);
|
||||||
|
spu2regs[omem >> 1 | core * 0x200] = value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REG_S_KON:
|
case REG_S_KON:
|
||||||
StartVoices(core,((u32)value));
|
StartVoices(core,((u32)value));
|
||||||
|
spu2regs[omem >> 1 | core * 0x200] = value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case (REG_S_KOFF + 2):
|
case (REG_S_KOFF + 2):
|
||||||
StopVoices(core,((u32)value)<<16);
|
StopVoices(core,((u32)value)<<16);
|
||||||
|
spu2regs[omem >> 1 | core * 0x200] = value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REG_S_KOFF:
|
case REG_S_KOFF:
|
||||||
StopVoices(core,((u32)value));
|
StopVoices(core,((u32)value));
|
||||||
|
spu2regs[omem >> 1 | core * 0x200] = value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REG_S_ENDX:
|
case REG_S_ENDX:
|
||||||
|
|
Loading…
Reference in New Issue