Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASAiCtrl.h
Go to the documentation of this file.
1#ifndef JASAICTRL_H
2#define JASAICTRL_H
3
4#include "dolphin/types.h"
5
9
16
17namespace JASDriver {
18 typedef s16* (*MixCallback)(s32);
19 typedef void (*MixFunc)(s16*, u32, MixCallback);
20
21 /* 8029C388 */ void initAI(void (*)(void));
22 /* 8029C4E4 */ void startDMA();
23 /* 8029C504 */ void stopDMA();
24 /* 8029C524 */ void setOutputRate(JASOutputRate);
25 /* 8029C568 */ void updateDac();
26 /* 8029C6C4 */ void updateDSP();
27 /* 8029C7E0 */ void readDspBuffer(s16*, u32);
28 /* 8029C900 */ void finishDSPFrame();
29 /* 8029C9DC */ void registerMixCallback(MixCallback, JASMixMode);
30 /* 8029C9E8 */ f32 getDacRate();
31 /* 8029C9F0 */ u32 getSubFrames();
32 /* 8029C9F8 */ u32 getDacSize();
33 /* 8029CA04 */ u32 getFrameSamples();
34 /* 8029CA10 */ void mixMonoTrack(s16*, u32, MixCallback);
35 /* 8029CAC0 */ void mixMonoTrackWide(s16*, u32, MixCallback);
36 /* 8029CB70 */ void mixExtraTrack(s16*, u32, MixCallback);
37 /* 8029CC50 */ void mixInterleaveTrack(s16*, u32, MixCallback);
38 /* 8029CCD4 */ u32 getSubFrameCounter();
39 /* 8029E2A8 */ void subframeCallback();
40 /* 8029E2D0 */ void DSPSyncCallback();
41
42 extern const MixFunc sMixFuncs[4];
43 extern s16* sDmaDacBuffer[3];
44 extern JASMixMode sMixMode;
45 extern f32 sDacRate;
46 extern u32 sSubFrames;
47 extern s16** sDspDacBuffer;
50 extern s32 sDspStatus;
51 extern void (*sDspDacCallback)(s16*, u32);
52 extern s16* lastRspMadep;
53 extern void (*dacCallbackFunc)(s16*, u32);
55 extern u32 sOutputRate;
56 extern u32 sSubFrameCounter;
57};
58
59#endif /* JASAICTRL_H */
JASMixMode
Definition JASAiCtrl.h:10
@ MIX_MODE_MONO_WIDE
Definition JASAiCtrl.h:12
@ MIX_MODE_EXTRA
Definition JASAiCtrl.h:13
@ MIX_MODE_MONO
Definition JASAiCtrl.h:11
@ MIX_MODE_INTERLEAVE
Definition JASAiCtrl.h:14
JASOutputRate
Definition JASAiCtrl.h:6
@ OUTPUT_RATE_0
Definition JASAiCtrl.h:7
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JASAiCtrl.h:17
void(* dacCallbackFunc)(s16 *, u32)
Definition JASAiCtrl.cpp:49
u32 sSubFrameCounter
Definition JASAiCtrl.cpp:125
u32 getSubFrameCounter()
Definition JASAiCtrl.cpp:328
void mixInterleaveTrack(s16 *, u32, MixCallback)
Definition JASAiCtrl.cpp:314
u32 sSubFrames
Definition JASAiCtrl.cpp:101
u32 getSubFrames()
Definition JASAiCtrl.cpp:241
void readDspBuffer(s16 *, u32)
Definition JASAiCtrl.cpp:185
void setOutputRate(JASOutputRate)
Definition JASAiCtrl.cpp:104
void stopDMA()
Definition JASAiCtrl.cpp:90
void(* sDspDacCallback)(s16 *, u32)
Definition JASAiCtrl.cpp:43
MixCallback extMixCallback
Definition JASAiCtrl.cpp:52
void subframeCallback()
Definition JASDriverIF.cpp:90
void mixMonoTrackWide(s16 *, u32, MixCallback)
Definition JASAiCtrl.cpp:274
s16 *(* MixCallback)(s32)
Definition JASAiCtrl.h:18
void registerMixCallback(MixCallback, JASMixMode)
Definition JASAiCtrl.cpp:230
void updateDSP()
Definition JASAiCtrl.cpp:158
JASMixMode sMixMode
Definition JASAiCtrl.cpp:95
s16 * sDmaDacBuffer[3]
Definition JASAiCtrl.cpp:25
void finishDSPFrame()
Definition JASAiCtrl.cpp:207
s32 sDspDacWriteBuffer
Definition JASAiCtrl.cpp:34
void initAI(void(*)(void))
Definition JASAiCtrl.cpp:59
void startDMA()
Definition JASAiCtrl.cpp:84
u32 sOutputRate
Definition JASAiCtrl.cpp:55
s16 ** sDspDacBuffer
Definition JASAiCtrl.cpp:31
u32 getDacSize()
Definition JASAiCtrl.cpp:246
s16 * lastRspMadep
Definition JASAiCtrl.cpp:46
const MixFunc sMixFuncs[4]
Definition JASAiCtrl.cpp:117
s32 sDspDacReadBuffer
Definition JASAiCtrl.cpp:37
s32 sDspStatus
Definition JASAiCtrl.cpp:40
u32 getFrameSamples()
Definition JASAiCtrl.cpp:251
void DSPSyncCallback()
Definition JASDriverIF.cpp:95
void(* MixFunc)(s16 *, u32, MixCallback)
Definition JASAiCtrl.h:19
void mixExtraTrack(s16 *, u32, MixCallback)
Definition JASAiCtrl.cpp:293
f32 getDacRate()
Definition JASAiCtrl.cpp:236
f32 sDacRate
Definition JASAiCtrl.cpp:98
void mixMonoTrack(s16 *, u32, MixCallback)
Definition JASAiCtrl.cpp:257
void updateDac()
Definition JASAiCtrl.cpp:128
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
signed long s32
Definition types.h:6