SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
axfx.h
Go to the documentation of this file.
1
#ifndef _DOLPHIN_AXFX_H_
2
#define _DOLPHIN_AXFX_H_
3
4
#include <
dolphin/types.h
>
5
6
struct
AXFX_REVSTD_DELAYLINE
{
7
/* 0x00 */
long
inPoint
;
8
/* 0x04 */
long
outPoint
;
9
/* 0x08 */
long
length
;
10
/* 0x0C */
float
*
inputs
;
11
/* 0x10 */
float
lastOutput
;
12
};
13
14
struct
AXFX_REVSTD_WORK
{
15
/* 0x000 */
struct
AXFX_REVSTD_DELAYLINE
AP
[6];
16
/* 0x078 */
struct
AXFX_REVSTD_DELAYLINE
C
[6];
17
/* 0x0F0 */
float
allPassCoeff
;
18
/* 0x0F4 */
float
combCoef
[6];
19
/* 0x10C */
float
lpLastout
[3];
20
/* 0x118 */
float
level
;
21
/* 0x11C */
float
damping
;
22
/* 0x120 */
long
preDelayTime
;
23
/* 0x124 */
float
*
preDelayLine
[3];
24
/* 0x130 */
float
*
preDelayPtr
[3];
25
};
26
27
struct
AXFX_REVERBSTD
{
28
/* 0x000 */
struct
AXFX_REVSTD_WORK
rv
;
29
/* 0x13C */
u8
tempDisableFX
;
30
/* 0x140 */
float
coloration
;
31
/* 0x144 */
float
mix
;
32
/* 0x148 */
float
time
;
33
/* 0x14C */
float
damping
;
34
/* 0x150 */
float
preDelay
;
35
};
36
37
struct
AXFX_BUFFERUPDATE
{
38
/* 0x00 */
long
*
left
;
39
/* 0x04 */
long
*
right
;
40
/* 0x08 */
long
*
surround
;
41
};
42
43
// REVHI Structs
44
45
struct
AXFX_REVHI_DELAYLINE
{
46
/* 0x00 */
long
inPoint
;
47
/* 0x04 */
long
outPoint
;
48
/* 0x08 */
long
length
;
49
/* 0x0C */
float
*
inputs
;
50
/* 0x10 */
float
lastOutput
;
51
};
52
53
struct
AXFX_REVHI_WORK
{
54
/* 0x000 */
struct
AXFX_REVHI_DELAYLINE
AP
[9];
55
/* 0x0B4 */
struct
AXFX_REVHI_DELAYLINE
C
[9];
56
/* 0x168 */
float
allPassCoeff
;
57
/* 0x16C */
float
combCoef
[9];
58
/* 0x190 */
float
lpLastout
[3];
59
/* 0x19C */
float
level
;
60
/* 0x1A0 */
float
damping
;
61
/* 0x1A4 */
long
preDelayTime
;
62
/* 0x1A8 */
float
crosstalk
;
63
/* 0x1AC */
float
*
preDelayLine
[3];
64
/* 0x1B8 */
float
*
preDelayPtr
[3];
65
};
66
67
struct
AXFX_REVERBHI
{
68
/* 0x000 */
struct
AXFX_REVHI_WORK
rv
;
69
/* 0x1C4 */
u8
tempDisableFX
;
70
/* 0x1C8 */
float
coloration
;
71
/* 0x1CC */
float
mix
;
72
/* 0x1D0 */
float
time
;
73
/* 0x1D4 */
float
damping
;
74
/* 0x1D8 */
float
preDelay
;
75
/* 0x1DC */
float
crosstalk
;
76
};
77
78
struct
AXFX_DELAY
{
79
/* 0x00 */
u32
currentSize
[3];
80
/* 0x0C */
u32
currentPos
[3];
81
/* 0x18 */
u32
currentFeedback
[3];
82
/* 0x24 */
u32
currentOutput
[3];
83
/* 0x30 */
long
*
left
;
84
/* 0x34 */
long
*
right
;
85
/* 0x38 */
long
*
sur
;
86
/* 0x3C */
u32
delay
[3];
87
/* 0x48 */
u32
feedback
[3];
88
/* 0x54 */
u32
output
[3];
89
};
90
91
struct
AXFX_CHORUS_SRCINFO
{
92
/* 0x00 */
long
*
dest
;
93
/* 0x04 */
long
*
smpBase
;
94
/* 0x08 */
long
*
old
;
95
/* 0x0C */
u32
posLo
;
96
/* 0x10 */
u32
posHi
;
97
/* 0x14 */
u32
pitchLo
;
98
/* 0x18 */
u32
pitchHi
;
99
/* 0x1C */
u32
trigger
;
100
/* 0x20 */
u32
target
;
101
};
102
103
struct
AXFX_CHORUS_WORK
{
104
/* 0x00 */
long
*
lastLeft
[3];
105
/* 0x0C */
long
*
lastRight
[3];
106
/* 0x18 */
long
*
lastSur
[3];
107
/* 0x24 */
u8
currentLast
;
108
/* 0x28 */
long
oldLeft
[4];
109
/* 0x38 */
long
oldRight
[4];
110
/* 0x48 */
long
oldSur
[4];
111
/* 0x58 */
u32
currentPosLo
;
112
/* 0x5C */
u32
currentPosHi
;
113
/* 0x60 */
long
pitchOffset
;
114
/* 0x64 */
u32
pitchOffsetPeriodCount
;
115
/* 0x68 */
u32
pitchOffsetPeriod
;
116
/* 0x6C */
struct
AXFX_CHORUS_SRCINFO
src
;
117
};
118
119
struct
AXFX_CHORUS
{
120
/* 0x00 */
struct
AXFX_CHORUS_WORK
work
;
121
/* 0x90 */
u32
baseDelay
;
122
/* 0x94 */
u32
variation
;
123
/* 0x98 */
u32
period
;
124
};
125
126
extern
void
* (*__AXFXAlloc)(
unsigned
long);
127
extern
void (*
__AXFXFree
)(
void
*);
128
129
// chorus.c
130
int
AXFXChorusInit
(
struct
AXFX_CHORUS
*
c
);
131
int
AXFXChorusShutdown
(
struct
AXFX_CHORUS
*
c
);
132
int
AXFXChorusSettings
(
struct
AXFX_CHORUS
*
c
);
133
void
AXFXChorusCallback
(
struct
AXFX_BUFFERUPDATE
* bufferUpdate,
134
struct
AXFX_CHORUS
* chorus);
135
136
// delay.c
137
void
AXFXDelayCallback
(
struct
AXFX_BUFFERUPDATE
* bufferUpdate,
138
struct
AXFX_DELAY
* delay);
139
int
AXFXDelaySettings
(
struct
AXFX_DELAY
* delay);
140
int
AXFXDelayInit
(
struct
AXFX_DELAY
* delay);
141
int
AXFXDelayShutdown
(
struct
AXFX_DELAY
* delay);
142
143
// reverb_hi.c
144
void
DoCrossTalk
(
long
* l,
long
* r,
float
cross,
float
invcross);
145
int
AXFXReverbHiInit
(
struct
AXFX_REVERBHI
* rev);
146
int
AXFXReverbHiShutdown
(
struct
AXFX_REVERBHI
* rev);
147
int
AXFXReverbHiSettings
(
struct
AXFX_REVERBHI
* rev);
148
void
AXFXReverbHiCallback
(
struct
AXFX_BUFFERUPDATE
* bufferUpdate,
149
struct
AXFX_REVERBHI
* reverb);
150
151
// reverb_std.c
152
int
AXFXReverbStdInit
(
struct
AXFX_REVERBSTD
* rev);
153
int
AXFXReverbStdShutdown
(
struct
AXFX_REVERBSTD
* rev);
154
int
AXFXReverbStdSettings
(
struct
AXFX_REVERBSTD
* rev);
155
void
AXFXReverbStdCallback
(
struct
AXFX_BUFFERUPDATE
* bufferUpdate,
156
struct
AXFX_REVERBSTD
* reverb);
157
158
// axfx.c
159
void
*
AXFXAllocFunction
(
unsigned
long
size);
160
void
AXFXFreeFunction
(
void
* ptr);
161
void
AXFXSetHooks
(
void
* (*alloc_hook)(
unsigned
long
),
162
void
(*free_hook)(
void
*));
163
164
#endif
// _DOLPHIN_AXFX_H_
AXFXChorusCallback
void AXFXChorusCallback(struct AXFX_BUFFERUPDATE *bufferUpdate, struct AXFX_CHORUS *chorus)
AXFXReverbStdShutdown
int AXFXReverbStdShutdown(struct AXFX_REVERBSTD *rev)
AXFXAllocFunction
void * AXFXAllocFunction(unsigned long size)
AXFXReverbHiShutdown
int AXFXReverbHiShutdown(struct AXFX_REVERBHI *rev)
AXFXReverbStdInit
int AXFXReverbStdInit(struct AXFX_REVERBSTD *rev)
AXFXChorusSettings
int AXFXChorusSettings(struct AXFX_CHORUS *c)
AXFXChorusInit
int AXFXChorusInit(struct AXFX_CHORUS *c)
AXFXDelaySettings
int AXFXDelaySettings(struct AXFX_DELAY *delay)
DoCrossTalk
void DoCrossTalk(long *l, long *r, float cross, float invcross)
AXFXSetHooks
void AXFXSetHooks(void *(*alloc_hook)(unsigned long), void(*free_hook)(void *))
__AXFXFree
void(* __AXFXFree)(void *)
AXFXReverbStdCallback
void AXFXReverbStdCallback(struct AXFX_BUFFERUPDATE *bufferUpdate, struct AXFX_REVERBSTD *reverb)
AXFXChorusShutdown
int AXFXChorusShutdown(struct AXFX_CHORUS *c)
AXFXFreeFunction
void AXFXFreeFunction(void *ptr)
AXFXReverbStdSettings
int AXFXReverbStdSettings(struct AXFX_REVERBSTD *rev)
AXFXDelayShutdown
int AXFXDelayShutdown(struct AXFX_DELAY *delay)
AXFXReverbHiInit
int AXFXReverbHiInit(struct AXFX_REVERBHI *rev)
AXFXReverbHiSettings
int AXFXReverbHiSettings(struct AXFX_REVERBHI *rev)
AXFXReverbHiCallback
void AXFXReverbHiCallback(struct AXFX_BUFFERUPDATE *bufferUpdate, struct AXFX_REVERBHI *reverb)
AXFXDelayCallback
void AXFXDelayCallback(struct AXFX_BUFFERUPDATE *bufferUpdate, struct AXFX_DELAY *delay)
AXFXDelayInit
int AXFXDelayInit(struct AXFX_DELAY *delay)
types.h
u32
unsigned long u32
Definition
types.h:9
u8
unsigned char u8
Definition
types.h:5
AXFX_BUFFERUPDATE
Definition
axfx.h:37
AXFX_BUFFERUPDATE::surround
long * surround
Definition
axfx.h:40
AXFX_BUFFERUPDATE::left
long * left
Definition
axfx.h:38
AXFX_BUFFERUPDATE::right
long * right
Definition
axfx.h:39
AXFX_CHORUS_SRCINFO
Definition
axfx.h:91
AXFX_CHORUS_SRCINFO::trigger
u32 trigger
Definition
axfx.h:99
AXFX_CHORUS_SRCINFO::smpBase
long * smpBase
Definition
axfx.h:93
AXFX_CHORUS_SRCINFO::pitchHi
u32 pitchHi
Definition
axfx.h:98
AXFX_CHORUS_SRCINFO::old
long * old
Definition
axfx.h:94
AXFX_CHORUS_SRCINFO::pitchLo
u32 pitchLo
Definition
axfx.h:97
AXFX_CHORUS_SRCINFO::posLo
u32 posLo
Definition
axfx.h:95
AXFX_CHORUS_SRCINFO::dest
long * dest
Definition
axfx.h:92
AXFX_CHORUS_SRCINFO::posHi
u32 posHi
Definition
axfx.h:96
AXFX_CHORUS_SRCINFO::target
u32 target
Definition
axfx.h:100
AXFX_CHORUS_WORK
Definition
axfx.h:103
AXFX_CHORUS_WORK::currentPosLo
u32 currentPosLo
Definition
axfx.h:111
AXFX_CHORUS_WORK::lastLeft
long * lastLeft[3]
Definition
axfx.h:104
AXFX_CHORUS_WORK::pitchOffsetPeriod
u32 pitchOffsetPeriod
Definition
axfx.h:115
AXFX_CHORUS_WORK::currentPosHi
u32 currentPosHi
Definition
axfx.h:112
AXFX_CHORUS_WORK::oldSur
long oldSur[4]
Definition
axfx.h:110
AXFX_CHORUS_WORK::pitchOffset
long pitchOffset
Definition
axfx.h:113
AXFX_CHORUS_WORK::oldRight
long oldRight[4]
Definition
axfx.h:109
AXFX_CHORUS_WORK::oldLeft
long oldLeft[4]
Definition
axfx.h:108
AXFX_CHORUS_WORK::lastSur
long * lastSur[3]
Definition
axfx.h:106
AXFX_CHORUS_WORK::currentLast
u8 currentLast
Definition
axfx.h:107
AXFX_CHORUS_WORK::pitchOffsetPeriodCount
u32 pitchOffsetPeriodCount
Definition
axfx.h:114
AXFX_CHORUS_WORK::src
struct AXFX_CHORUS_SRCINFO src
Definition
axfx.h:116
AXFX_CHORUS_WORK::lastRight
long * lastRight[3]
Definition
axfx.h:105
AXFX_CHORUS
Definition
axfx.h:119
AXFX_CHORUS::period
u32 period
Definition
axfx.h:123
AXFX_CHORUS::work
struct AXFX_CHORUS_WORK work
Definition
axfx.h:120
AXFX_CHORUS::variation
u32 variation
Definition
axfx.h:122
AXFX_CHORUS::baseDelay
u32 baseDelay
Definition
axfx.h:121
AXFX_DELAY
Definition
axfx.h:78
AXFX_DELAY::left
long * left
Definition
axfx.h:83
AXFX_DELAY::currentOutput
u32 currentOutput[3]
Definition
axfx.h:82
AXFX_DELAY::sur
long * sur
Definition
axfx.h:85
AXFX_DELAY::feedback
u32 feedback[3]
Definition
axfx.h:87
AXFX_DELAY::currentPos
u32 currentPos[3]
Definition
axfx.h:80
AXFX_DELAY::currentFeedback
u32 currentFeedback[3]
Definition
axfx.h:81
AXFX_DELAY::right
long * right
Definition
axfx.h:84
AXFX_DELAY::currentSize
u32 currentSize[3]
Definition
axfx.h:79
AXFX_DELAY::output
u32 output[3]
Definition
axfx.h:88
AXFX_DELAY::delay
u32 delay[3]
Definition
axfx.h:86
AXFX_REVERBHI
Definition
axfx.h:67
AXFX_REVERBHI::time
float time
Definition
axfx.h:72
AXFX_REVERBHI::mix
float mix
Definition
axfx.h:71
AXFX_REVERBHI::damping
float damping
Definition
axfx.h:73
AXFX_REVERBHI::tempDisableFX
u8 tempDisableFX
Definition
axfx.h:69
AXFX_REVERBHI::rv
struct AXFX_REVHI_WORK rv
Definition
axfx.h:68
AXFX_REVERBHI::crosstalk
float crosstalk
Definition
axfx.h:75
AXFX_REVERBHI::coloration
float coloration
Definition
axfx.h:70
AXFX_REVERBHI::preDelay
float preDelay
Definition
axfx.h:74
AXFX_REVERBSTD
Definition
axfx.h:27
AXFX_REVERBSTD::tempDisableFX
u8 tempDisableFX
Definition
axfx.h:29
AXFX_REVERBSTD::time
float time
Definition
axfx.h:32
AXFX_REVERBSTD::preDelay
float preDelay
Definition
axfx.h:34
AXFX_REVERBSTD::rv
struct AXFX_REVSTD_WORK rv
Definition
axfx.h:28
AXFX_REVERBSTD::coloration
float coloration
Definition
axfx.h:30
AXFX_REVERBSTD::damping
float damping
Definition
axfx.h:33
AXFX_REVERBSTD::mix
float mix
Definition
axfx.h:31
AXFX_REVHI_DELAYLINE
Definition
axfx.h:45
AXFX_REVHI_DELAYLINE::length
long length
Definition
axfx.h:48
AXFX_REVHI_DELAYLINE::lastOutput
float lastOutput
Definition
axfx.h:50
AXFX_REVHI_DELAYLINE::inPoint
long inPoint
Definition
axfx.h:46
AXFX_REVHI_DELAYLINE::outPoint
long outPoint
Definition
axfx.h:47
AXFX_REVHI_DELAYLINE::inputs
float * inputs
Definition
axfx.h:49
AXFX_REVHI_WORK
Definition
axfx.h:53
AXFX_REVHI_WORK::C
struct AXFX_REVHI_DELAYLINE C[9]
Definition
axfx.h:55
AXFX_REVHI_WORK::preDelayTime
long preDelayTime
Definition
axfx.h:61
AXFX_REVHI_WORK::level
float level
Definition
axfx.h:59
AXFX_REVHI_WORK::allPassCoeff
float allPassCoeff
Definition
axfx.h:56
AXFX_REVHI_WORK::damping
float damping
Definition
axfx.h:60
AXFX_REVHI_WORK::lpLastout
float lpLastout[3]
Definition
axfx.h:58
AXFX_REVHI_WORK::preDelayPtr
float * preDelayPtr[3]
Definition
axfx.h:64
AXFX_REVHI_WORK::AP
struct AXFX_REVHI_DELAYLINE AP[9]
Definition
axfx.h:54
AXFX_REVHI_WORK::combCoef
float combCoef[9]
Definition
axfx.h:57
AXFX_REVHI_WORK::crosstalk
float crosstalk
Definition
axfx.h:62
AXFX_REVHI_WORK::preDelayLine
float * preDelayLine[3]
Definition
axfx.h:63
AXFX_REVSTD_DELAYLINE
Definition
axfx.h:6
AXFX_REVSTD_DELAYLINE::lastOutput
float lastOutput
Definition
axfx.h:11
AXFX_REVSTD_DELAYLINE::inPoint
long inPoint
Definition
axfx.h:7
AXFX_REVSTD_DELAYLINE::inputs
float * inputs
Definition
axfx.h:10
AXFX_REVSTD_DELAYLINE::length
long length
Definition
axfx.h:9
AXFX_REVSTD_DELAYLINE::outPoint
long outPoint
Definition
axfx.h:8
AXFX_REVSTD_WORK
Definition
axfx.h:14
AXFX_REVSTD_WORK::allPassCoeff
float allPassCoeff
Definition
axfx.h:17
AXFX_REVSTD_WORK::combCoef
float combCoef[6]
Definition
axfx.h:18
AXFX_REVSTD_WORK::AP
struct AXFX_REVSTD_DELAYLINE AP[6]
Definition
axfx.h:15
AXFX_REVSTD_WORK::C
struct AXFX_REVSTD_DELAYLINE C[6]
Definition
axfx.h:16
AXFX_REVSTD_WORK::preDelayPtr
float * preDelayPtr[3]
Definition
axfx.h:24
AXFX_REVSTD_WORK::lpLastout
float lpLastout[3]
Definition
axfx.h:19
AXFX_REVSTD_WORK::preDelayTime
long preDelayTime
Definition
axfx.h:22
AXFX_REVSTD_WORK::preDelayLine
float * preDelayLine[3]
Definition
axfx.h:23
AXFX_REVSTD_WORK::level
float level
Definition
axfx.h:20
AXFX_REVSTD_WORK::damping
float damping
Definition
axfx.h:21
c
int c
Definition
tev.c:10
extern
dolphin
include
dolphin
axfx.h
Generated by
1.17.0