Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASSoundParams.h
Go to the documentation of this file.
1#ifndef JASSOUNDPARAMS_H
2#define JASSOUNDPARAMS_H
3
4#include "dolphin/types.h"
5
11 /* 8029E3B0 */ void clamp();
12 /* 8029E47C */ void combine(JASSoundParams const&, JASSoundParams const&);
13
14 void initVolume() { mVolume = 1.0f; }
15 void initFxMix() { mFxMix = 0.0f; }
16 void initPitch() { mPitch = 1.0f; }
17 void initPan() { mPan = 0.5f; }
18 void initDolby() { mDolby = 0.0f; }
19 void init() {
20 initVolume();
21 initPitch();
22 initFxMix();
23 initPan();
24 initDolby();
25 }
26
28
29 void clampVolume() {
30 if (mVolume < 0.0f)
31 mVolume = 0.0f;
32 else if (mVolume > 1.0f)
33 mVolume = 1.0f;
34 }
35
36 void clampFxMix(void) {
37 if (mFxMix < 0.0f)
38 mFxMix = 0.0f;
39 else if (mFxMix > 1.0f)
40 mFxMix = 1.0f;
41 }
42
43 void clampPitch() {
44 if (mPitch < 0.0f)
45 mPitch = 0.0f;
46 else if (mPitch > 8.0f)
47 mPitch = 8.0f;
48 }
49
50 void clampPan() {
51 if (mPan < 0.0f)
52 mPan = 0.0f;
53 else if (mPan > 1.0f)
54 mPan = 1.0f;
55 }
56
57 void clampDolby() {
58 if (mDolby < 0.0f)
59 mDolby = 0.0f;
60 else if (mDolby > 1.0f)
61 mDolby = 1.0f;
62 }
63
64 /* 0x00 */ f32 mVolume;
65 /* 0x04 */ f32 mFxMix;
66 /* 0x08 */ f32 mPitch;
67 /* 0x0C */ f32 mPan;
68 /* 0x10 */ f32 mDolby;
69}; // Size: 0x14
70
71#endif /* JASSOUNDPARAMS_H */
Definition JASSoundParams.h:10
f32 mDolby
Definition JASSoundParams.h:68
void initPitch()
Definition JASSoundParams.h:16
void clampDolby()
Definition JASSoundParams.h:57
void clampFxMix(void)
Definition JASSoundParams.h:36
f32 mFxMix
Definition JASSoundParams.h:65
void init()
Definition JASSoundParams.h:19
f32 mPan
Definition JASSoundParams.h:67
void initFxMix()
Definition JASSoundParams.h:15
f32 mVolume
Definition JASSoundParams.h:64
void combine(JASSoundParams const &, JASSoundParams const &)
Definition JASSoundParams.cpp:19
void clampVolume()
Definition JASSoundParams.h:29
void initPan()
Definition JASSoundParams.h:17
void initDolby()
Definition JASSoundParams.h:18
f32 mPitch
Definition JASSoundParams.h:66
JASSoundParams()
Definition JASSoundParams.h:27
void initVolume()
Definition JASSoundParams.h:14
void clamp()
Definition JASSoundParams.cpp:9
void clampPan()
Definition JASSoundParams.h:50
void clampPitch()
Definition JASSoundParams.h:43
float f32
Definition types.h:22