SPU2-X: Just fixing up a small error i came across while looking into something else. Nothing to see here.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5893 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
refraction 2014-02-08 17:52:33 +00:00
parent 9d479ab64b
commit 82d5194a4f
1 changed files with 7 additions and 12 deletions

View File

@ -503,35 +503,30 @@ void V_Core::WriteRegPS1( u32 mem, u16 value )
u8 vval = reg&0xf; u8 vval = reg&0xf;
switch(vval) switch(vval)
{ {
case 0: //VOLL (Volume L) case 0x0: //VOLL (Volume L)
Voices[voice].Volume.Left.Mode = 0; Voices[voice].Volume.Left.Mode = 0;
Voices[voice].Volume.Left.RegSet( value << 1 ); Voices[voice].Volume.Left.RegSet( value << 1 );
Voices[voice].Volume.Left.Reg_VOL = value; Voices[voice].Volume.Left.Reg_VOL = value;
break; break;
case 1: //VOLR (Volume R) case 0x2: //VOLR (Volume R)
Voices[voice].Volume.Right.Mode = 0; Voices[voice].Volume.Right.Mode = 0;
Voices[voice].Volume.Right.RegSet( value << 1 ); Voices[voice].Volume.Right.RegSet( value << 1 );
Voices[voice].Volume.Right.Reg_VOL = value; Voices[voice].Volume.Right.Reg_VOL = value;
break; break;
case 2: Voices[voice].Pitch = value; break; case 0x4: Voices[voice].Pitch = value; break;
case 3: Voices[voice].StartA = (u32)value<<8; break; case 0x6: Voices[voice].StartA = (u32)value << 8; break;
case 4: // ADSR1 (Envelope) case 0x8: // ADSR1 (Envelope)
Voices[voice].ADSR.regADSR1 = value; Voices[voice].ADSR.regADSR1 = value;
break; break;
case 5: // ADSR2 (Envelope) case 0xa: // ADSR2 (Envelope)
Voices[voice].ADSR.regADSR2 = value; Voices[voice].ADSR.regADSR2 = value;
break; break;
case 6: case 0xe: Voices[voice].LoopStartA = (u32)value << 8; break;
Voices[voice].ADSR.Value = ((s32)value<<16) | value;
ConLog( "* SPU2: Mysterious ADSR Volume Set to 0x%x", value );
break;
case 7: Voices[voice].LoopStartA = (u32)value <<8; break;
jNO_DEFAULT; jNO_DEFAULT;
} }