MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / CounterUpdate

Function CounterUpdate

pcsx2/SPU2/spu2sys.cpp:236–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236__forceinline void CounterUpdate(u32 DMAICounter)
237{
238 if (((psxCounters[6].startCycle + psxCounters[6].deltaCycles) - psxRegs.cycle) > (u32)DMAICounter)
239 {
240 psxCounters[6].startCycle = psxRegs.cycle;
241 psxCounters[6].deltaCycles = DMAICounter;
242
243 psxNextDeltaCounter -= (psxRegs.cycle - psxNextStartCounter);
244 psxNextStartCounter = psxRegs.cycle;
245 if (psxCounters[6].deltaCycles < psxNextDeltaCounter)
246 psxNextDeltaCounter = psxCounters[6].deltaCycles;
247 }
248}
249
250__forceinline void CheckDMAProgress(int cid)
251{

Callers 4

CheckDMAProgressFunction · 0.85
FinishDMAwriteMethod · 0.85
FinishDMAreadMethod · 0.85
DoDMAreadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected