Skip to content

Commit 763205e

Browse files
committed
SPU: Remove unused voice struct members
Might as well If the saveversion is already being bumped. [SAVEVERSION+]
1 parent 18104e5 commit 763205e

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

pcsx2/SPU2/defs.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,6 @@ struct V_Voice
256256
// Sample pointer (19:12 bit fixed point)
257257
s32 SP;
258258

259-
// Sample pointer for Cubic Interpolation
260-
// Cubic interpolation mixes a sample behind Linear, so that it
261-
// can have sample data to either side of the end points from which
262-
// to extrapolate. This SP represents that late sample position.
263-
s32 SPc;
264-
265259
// Previous sample values - used for interpolation
266260
// Inverted order of these members to match the access order in the
267261
// code (might improve cache hits).
@@ -272,7 +266,6 @@ struct V_Voice
272266

273267
// Last outputted audio value, used for voice modulation.
274268
s32 OutX;
275-
s32 NextCrest; // temp value for Crest calculation
276269

277270
// SBuffer now points directly to an ADPCM cache entry.
278271
s16* SBuffer;

pcsx2/SPU2/spu2sys.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void V_Voice::Start()
228228

229229
PV1 = PV2 = 0;
230230
PV3 = PV4 = 0;
231-
NextCrest = -0x8000;
231+
232232
PlayDelay = 3;
233233
}
234234

pcsx2/SaveState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enum class FreezeAction
2525
// [SAVEVERSION+]
2626
// This informs the auto updater that the users savestates will be invalidated.
2727

28-
static const u32 g_SaveVersion = (0x9A56 << 16) | 0x0000;
28+
static const u32 g_SaveVersion = (0x9A57 << 16) | 0x0000;
2929

3030

3131
// the freezing data between submodules and core

0 commit comments

Comments
 (0)