SPU2ghz: Bugfix for when loading older/non-compatible spu2 savestates.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@483 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
Jake.Stine 2008-12-23 05:03:23 +00:00 committed by Gregory Hainaut
parent d5b99ae3fe
commit d3b51a4529
1 changed files with 1 additions and 11 deletions

View File

@ -1744,7 +1744,7 @@ typedef struct
static int getFreezeSize()
{
if( disableFreezes ) return 7; // length of the string id "invalid"
if( disableFreezes ) return 8; // length of the string id "invalid" (plus a zero!)
int size = sizeof(SPU2freezeData);
@ -1956,10 +1956,6 @@ void VoiceStart(int core,int vc)
Cores[core].Voices[vc].Prev1=0;
Cores[core].Voices[vc].Prev2=0;
// [Air]: Don't wipe interpolation values on VoiceStart.
// There should be less popping/clicking if we just interpolate from the
// old sample into the new sample.
Cores[core].Voices[vc].PV1=Cores[core].Voices[vc].PV2=0;
Cores[core].Voices[vc].PV3=Cores[core].Voices[vc].PV4=0;
@ -1991,12 +1987,6 @@ void VoiceStop(int core,int vc)
Cores[core].Voices[vc].ADSR.Value=0;
Cores[core].Voices[vc].ADSR.Phase=0;
// [Air]: Wipe the interpolation values here, since stopped voices
// are essentially silence (and any new voices shold thusly interpolate up from
// such silence)
//Cores[core].Voices[vc].PV1=Cores[core].Voices[vc].PV2=0;
//Cores[core].Voices[vc].PV3=Cores[core].Voices[vc].PV4=0;
//Cores[core].Regs.ENDX|=(1<<vc);
}