NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
AXFXChorusExp.h
1#ifndef RVL_SDK_AXFX_CHORUS_EXP_H
2#define RVL_SDK_AXFX_CHORUS_EXP_H
3#include <types.h>
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8// Forward declarations
9typedef struct AXFX_BUS AXFX_BUS;
11
12typedef struct AXFX_CHORUS_EXP_DELAY {
13 f32* line[3]; // at 0x0
14 u32 inPos; // at 0xC
15 u32 outPos; // at 0x10
16 u32 lastPos; // at 0x14
17 u32 sizeFP; // at 0x18
18 u32 size; // at 0x1C
20
21typedef struct AXFX_CHORUS_EXP_LFO {
22 s32* table; // at 0x0
23 s32 phaseAdd; // at 0x4
24 s32 stepSamp; // at 0x8
25 s32 depthSamp; // at 0xC
26 u32 phase; // at 0x10
27 u32 sign; // at 0x14
28 u32 lastNum; // at 0x18
29 s32 lastValue; // at 0x1C
30 s32 grad; // at 0x20
31 s32 gradFactor; // at 0x24
33
34typedef struct AXFX_CHORUS_EXP {
35 AXFX_CHORUS_EXP_DELAY delay; // at 0x0
36 AXFX_CHORUS_EXP_LFO lfo; // at 0x20
37 f32 history[3][4]; // at 0x48
38 u32 histIndex; // at 0x78
39 u32 active; // at 0x7C
40 f32 delayTime; // at 0x80
41 f32 depth; // at 0x84
42 f32 rate; // at 0x88
43 f32 feedback; // at 0x8C
44 AXFX_BUS* busIn; // at 0x90
45 AXFX_BUS* busOut; // at 0x94
46 f32 outGain; // at 0x98
47 f32 sendGain; // at 0x9C
49
50u32 AXFXChorusExpGetMemSize(const AXFX_CHORUS_EXP* fx);
51BOOL AXFXChorusExpInit(AXFX_CHORUS_EXP* fx);
52void AXFXChorusExpShutdown(AXFX_CHORUS_EXP* fx);
53BOOL AXFXChorusExpSettings(AXFX_CHORUS_EXP* fx);
54void AXFXChorusExpCallback(AXFX_BUFFERUPDATE* update, AXFX_CHORUS_EXP* fx);
55
56#ifdef __cplusplus
57}
58#endif
59#endif