SPU: Remove unused voice struct members

Might as well If the saveversion is already being bumped.

[SAVEVERSION+]
This commit is contained in:
Ziemas 2025-10-26 20:25:50 +01:00
parent b1cc005316
commit 77dd916a6b
3 changed files with 1 additions and 9 deletions

View File

@ -256,12 +256,6 @@ struct V_Voice
// Sample pointer (19:12 bit fixed point)
s32 SP;
// Sample pointer for Cubic Interpolation
// Cubic interpolation mixes a sample behind Linear, so that it
// can have sample data to either side of the end points from which
// to extrapolate. This SP represents that late sample position.
s32 SPc;
// Previous sample values - used for interpolation
// Inverted order of these members to match the access order in the
// code (might improve cache hits).
@ -272,7 +266,6 @@ struct V_Voice
// Last outputted audio value, used for voice modulation.
s32 OutX;
s32 NextCrest; // temp value for Crest calculation
// SBuffer now points directly to an ADPCM cache entry.
s16* SBuffer;

View File

@ -228,7 +228,6 @@ void V_Voice::Start()
PV1 = PV2 = 0;
PV3 = PV4 = 0;
NextCrest = -0x8000;
}
void V_Voice::Stop()

View File

@ -25,7 +25,7 @@ enum class FreezeAction
// [SAVEVERSION+]
// This informs the auto updater that the users savestates will be invalidated.
static const u32 g_SaveVersion = (0x9A55 << 16) | 0x0000;
static const u32 g_SaveVersion = (0x9A56 << 16) | 0x0000;
// the freezing data between submodules and core