fix for zerospu2 savestates

This commit is contained in:
refractionpcsx2
2008-04-28 18:15:32 +00:00
parent aed86a5420
commit dc7e4c4538
2 changed files with 6 additions and 6 deletions

View File

@@ -1508,8 +1508,8 @@ void CALLBACK SPU2write(u32 mem, u16 value)
if(spuaddr>0xFFFFE)
spuaddr = 0x2800;
C0_SPUADDR_SET(spuaddr);
spu2Ru16(REG_C0_SPUSTAT)&=~0x80;
spu2Ru16(REG_C0_CTRL)&=~0x30;
// spu2Ru16(REG_C0_SPUSTAT)&=~0x80;
// spu2Ru16(REG_C0_CTRL)&=~0x30;
break;
case REG_C1_SPUDATA:
spuaddr = C1_SPUADDR;
@@ -1524,8 +1524,8 @@ void CALLBACK SPU2write(u32 mem, u16 value)
if(spuaddr>0xFFFFE)
spuaddr = 0x2800;
C1_SPUADDR_SET(spuaddr);
spu2Ru16(REG_C1_SPUSTAT)&=~0x80;
spu2Ru16(REG_C1_CTRL)&=~0x30;
//spu2Ru16(REG_C1_SPUSTAT)&=~0x80;
// spu2Ru16(REG_C1_CTRL)&=~0x30;
break;
case REG_C0_IRQA_HI:
case REG_C0_IRQA_LO:
@@ -2118,7 +2118,7 @@ s32 CALLBACK SPU2freeze(int mode, freezeData *data)
// if( conf.options & OPTION_REALTIME )
// SPUWorkerCycles = SPUCycles;
// else
// spud->SPUWorkerCycles = SPUWorkerCycles;
spud->SPUWorkerCycles = SPUWorkerCycles;
memcpy(spud->SPUStartCycle, SPUStartCycle, sizeof(SPUStartCycle));
memcpy(spud->SPUTargetCycle, SPUTargetCycle, sizeof(SPUTargetCycle));

View File

@@ -89,7 +89,7 @@ extern FILE *spu2Log;
#define SPU2_VERSION PS2E_SPU2_VERSION
#define SPU2_REVISION 0
#define SPU2_BUILD 4 // increase that with each version
#define SPU2_MINOR 5
#define SPU2_MINOR 6
#define OPTION_TIMESTRETCH 1 // stretches samples without changing pitch to reduce cracking
#define OPTION_REALTIME 2 // sync to real time instead of ps2 time