Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JAISoundParams.h
Go to the documentation of this file.
1#ifndef JAISOUNDPARAMS_H
2#define JAISOUNDPARAMS_H
3
5
11 void init() {
12 field_0x0 = 1.0f;
13 field_0x4 = 0.0f;
14 field_0x8 = 1.0f;
15 }
16
17 /* 0x00 */ f32 field_0x0;
18 /* 0x04 */ f32 field_0x4;
19 /* 0x08 */ f32 field_0x8;
20}; // Size: 0xC
21
27 struct TTransition {
28 void zero() {
29 mStep = 0.0f;
30 mCount = 0;
31 mDest = 0.0f;
32 }
33
39
41 if (mCount > 1) {
42 mCount--;
43 param_0 += mStep;
44 } else {
45 if (mCount == 1) {
46 mCount = 0;
47 param_0 = mDest;
48 }
49 }
50 return param_0;
51 }
52
53 /* 0x0 */ f32 mStep;
54 /* 0x4 */ f32 mDest;
55 /* 0x8 */ u32 mCount;
56 }; // Size: 0xC
57
58 void init() {
59 mVolume.zero();
60 mPitch.zero();
61 mFxMix.zero();
62 mPan.zero();
63 mDolby.zero();
64 }
65
67 pParams->mVolume = mVolume.apply(pParams->mVolume);
68 pParams->mPitch = mPitch.apply(pParams->mPitch);
69 pParams->mFxMix = mFxMix.apply(pParams->mFxMix);
70 pParams->mDolby = mDolby.apply(pParams->mDolby);
71 pParams->mPan = mPan.apply(pParams->mPan);
72 }
73
74 /* 0x00 */ TTransition mVolume;
75 /* 0x0C */ TTransition mPitch;
76 /* 0x18 */ TTransition mFxMix;
77 /* 0x24 */ TTransition mPan;
78 /* 0x30 */ TTransition mDolby;
79}; // Size: 0x3C
80
87
88 void init() {
89 mParams.init();
91 }
92
94
95 /* 802A2DB4 */ void moveVolume(f32, u32);
96 /* 802A2E0C */ void movePitch(f32, u32);
97 /* 802A2E64 */ void moveFxMix(f32, u32);
98 /* 802A2EBC */ void movePan(f32, u32);
99 /* 802A2F14 */ void moveDolby(f32, u32);
100
103}; // Size: 0x50
104
112
113 void init() {
114 mMove.init();
115 mProperty.init();
116 }
117
120}; // Size: 0x5C
121// OG Size: 0x20
122
123#endif /* JAISOUNDPARAMS_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JAISoundParams.h:85
JAISoundParamsTransition mTransition
Definition JAISoundParams.h:102
void moveDolby(f32, u32)
Definition JAISoundParams.cpp:39
void moveVolume(f32, u32)
Definition JAISoundParams.cpp:3
void movePitch(f32, u32)
Definition JAISoundParams.cpp:12
void moveFxMix(f32, u32)
Definition JAISoundParams.cpp:21
JAISoundParamsMove()
Definition JAISoundParams.h:86
void init()
Definition JAISoundParams.h:88
void movePan(f32, u32)
Definition JAISoundParams.cpp:30
JASSoundParams mParams
Definition JAISoundParams.h:101
void calc()
Definition JAISoundParams.h:93
Definition JAISoundParams.h:10
f32 field_0x8
Definition JAISoundParams.h:19
f32 field_0x4
Definition JAISoundParams.h:18
f32 field_0x0
Definition JAISoundParams.h:17
void init()
Definition JAISoundParams.h:11
Definition JAISoundParams.h:27
u32 mCount
Definition JAISoundParams.h:55
void zero()
Definition JAISoundParams.h:28
void set(f32 newValue, f32 intensity, u32 fadeCount)
Definition JAISoundParams.h:34
f32 mStep
Definition JAISoundParams.h:53
f32 apply(f32 param_0)
Definition JAISoundParams.h:40
f32 mDest
Definition JAISoundParams.h:54
Definition JAISoundParams.h:26
TTransition mVolume
Definition JAISoundParams.h:74
void init()
Definition JAISoundParams.h:58
void apply(JASSoundParams *pParams)
Definition JAISoundParams.h:66
TTransition mDolby
Definition JAISoundParams.h:78
TTransition mPan
Definition JAISoundParams.h:77
TTransition mPitch
Definition JAISoundParams.h:75
TTransition mFxMix
Definition JAISoundParams.h:76
Definition JAISoundParams.h:109
JAISoundParams()
Definition JAISoundParams.h:110
JAISoundParamsMove mMove
Definition JAISoundParams.h:119
void mixOutAll(JASSoundParams const &, JASSoundParams *, f32)
Definition JAISound.cpp:68
void init()
Definition JAISoundParams.h:113
JAISoundParamsProperty mProperty
Definition JAISoundParams.h:118
Definition JASSoundParams.h:10
void init()
Definition JASSoundParams.h:19
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22