mirror of https://github.com/PCSX2/pcsx2.git
SPU2: Clean up warnings
This commit is contained in:
parent
2f70b153f2
commit
66101f8628
|
@ -98,7 +98,7 @@ void V_Core::LogAutoDMA(FILE* fp)
|
|||
|
||||
void V_Core::AutoDMAReadBuffer(int mode) //mode: 0= split stereo; 1 = do not split stereo
|
||||
{
|
||||
int spos = InputPosWrite & 0x100; // Starting position passed by TSA
|
||||
u32 spos = InputPosWrite & 0x100; // Starting position passed by TSA
|
||||
bool leftbuffer = !(InputPosWrite & 0x80);
|
||||
|
||||
if (InputPosWrite == 0xFFFF) // Data request not made yet
|
||||
|
|
|
@ -35,7 +35,7 @@ StereoOut32 V_Core::ReadInput_HiFi()
|
|||
if (psxmode)
|
||||
ConLog("ReadInput_HiFi!!!!!\n");
|
||||
|
||||
s16 ReadIndex = (OutPos * 2) & 0x1FF;
|
||||
u16 ReadIndex = (OutPos * 2) & 0x1FF;
|
||||
|
||||
StereoOut32 retval(
|
||||
(s32&)(*GetMemPtr(0x2000 + (Index << 10) + ReadIndex)),
|
||||
|
@ -104,7 +104,7 @@ StereoOut32 V_Core::ReadInput_HiFi()
|
|||
StereoOut32 V_Core::ReadInput()
|
||||
{
|
||||
StereoOut32 retval;
|
||||
s16 ReadIndex = OutPos;
|
||||
u16 ReadIndex = OutPos;
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
if (Cores[i].IRQEnable && (0x2000 + (Index << 10) + ReadIndex) == (Cores[i].IRQA & 0xfffffdff))
|
||||
|
|
|
@ -554,9 +554,9 @@ extern V_Core Cores[2];
|
|||
extern V_SPDIF Spdif;
|
||||
|
||||
// Output Buffer Writing Position (the same for all data);
|
||||
extern s16 OutPos;
|
||||
extern u16 OutPos;
|
||||
// Input Buffer Reading Position (the same for all data);
|
||||
extern s16 InputPos;
|
||||
extern u16 InputPos;
|
||||
// SPU Mixing Cycles ("Ticks mixed" counter)
|
||||
extern u32 Cycles;
|
||||
|
||||
|
|
|
@ -41,8 +41,8 @@ struct SPU2Savestate::DataBlock
|
|||
u32 version; // SPU2 version identifier
|
||||
V_Core Cores[2];
|
||||
V_SPDIF Spdif;
|
||||
s16 OutPos;
|
||||
s16 InputPos;
|
||||
u16 OutPos;
|
||||
u16 InputPos;
|
||||
u32 Cycles;
|
||||
u32 lClocks;
|
||||
int PlayMode;
|
||||
|
|
|
@ -37,8 +37,8 @@ V_CoreDebug DebugCores[2];
|
|||
V_Core Cores[2];
|
||||
V_SPDIF Spdif;
|
||||
|
||||
s16 OutPos;
|
||||
s16 InputPos;
|
||||
u16 OutPos;
|
||||
u16 InputPos;
|
||||
u32 Cycles;
|
||||
|
||||
int PlayMode;
|
||||
|
|
Loading…
Reference in New Issue