MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / __AXOutAiCallback

Function __AXOutAiCallback

src/dolphin/src/ax/AXOut.c:98–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void __AXOutAiCallback(void)
99{
100 if (__AXOutDspReady == 0)
101 {
102 __AXOsTime = OSGetTime();
103 }
104
105 if (__AXOutDspReady == 1)
106 {
107 __AXOutDspReady = 0;
108 __AXOutNewFrame(0);
109 }
110 else
111 {
112 __AXOutDspReady = 2;
113 DSPAssertTask(&__AXDSPTask);
114 }
115
116 if (__AXOutputBufferMode == 1)
117 {
118 AIInitDMA((u32)__AXOutBuffer[__AXAiDmaFrame], 0x280);
119 __AXAiDmaFrame++;
120 __AXAiDmaFrame %= 3;
121 }
122}
123
124static void __AXDSPInitCallback(void* task)
125{

Callers

nothing calls this directly

Calls 4

OSGetTimeFunction · 0.85
__AXOutNewFrameFunction · 0.85
DSPAssertTaskFunction · 0.85
AIInitDMAFunction · 0.85

Tested by

no test coverage detected