NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
snd_Sound3DCalculator.h
1
#ifndef NW4R_SND_SOUND_3D_CALCULATOR_H
2
#define NW4R_SND_SOUND_3D_CALCULATOR_H
3
4
#include <types.h>
5
6
#include "nw4r/snd/snd_Sound3DListener.h"
7
#include "nw4r/math/math_triangular.h"
8
9
namespace
nw4r {
10
namespace
snd {
11
12
class
Sound3DManager
;
13
class
Sound3DParam
;
14
15
class
Sound3DCalculator
{
16
public
:
17
struct
CalcPanParam {
18
f32 speakerAngleStereo;
// at 0x00
19
f32 frontSpeakerAngleDpl2;
// at 0x04
20
f32 rearSpeakerAngleDpl2;
// at 0x08
21
f32 initPan;
// at 0x0C
22
23
CalcPanParam()
24
: speakerAngleStereo(NW4R_MATH_PI / 4),
25
frontSpeakerAngleDpl2(NW4R_MATH_PI / 6),
26
rearSpeakerAngleDpl2(2 * NW4R_MATH_PI / 3),
27
initPan(0.0f) {}
28
};
29
30
static
void
31
CalcVolumeAndPriority(
const
Sound3DManager
&,
const
Sound3DListener
&,
const
Sound3DParam
&,
float
*,
int
*);
32
static
void
CalcPan(
33
const
Sound3DManager
&,
const
Sound3DListener
&,
const
Sound3DParam
&,
const
Sound3DCalculator::CalcPanParam
&,
34
float
*pan,
float
*surroundPan
35
);
36
static
void
CalcPitch(
const
Sound3DManager
&,
const
Sound3DListener
&,
const
Sound3DParam
&,
float
*);
37
static
void
CalcBiquadFilterValue(
const
Sound3DManager
&,
const
Sound3DListener
&,
const
Sound3DParam
&,
float
*);
38
static
void
CalcPanDpl2(
const
nw4r::math::VEC3
&,
float
,
float
,
float
,
float
,
float
,
float
,
float
*,
float
*);
39
static
void
CalcPanStereo(
const
nw4r::math::VEC3
&,
float
,
float
,
float
,
float
,
float
*,
float
*);
40
static
void
CalcAngleAndDistance(
const
nw4r::math::VEC3
&,
float
,
float
,
float
*,
float
*);
41
};
42
43
}
// namespace snd
44
}
// namespace nw4r
45
46
#endif
nw4r::snd::Sound3DCalculator
Definition
snd_Sound3DCalculator.h:15
nw4r::snd::Sound3DListener
Definition
snd_Sound3DListener.h:12
nw4r::snd::Sound3DManager
Definition
snd_Sound3DManager.h:29
nw4r::math::VEC3
Definition
math_types.h:81
nw4r::snd::Sound3DCalculator::CalcPanParam
Definition
snd_Sound3DCalculator.h:17
nw4r::snd::Sound3DParam
Definition
snd_Sound3DManager.h:15
include
lib
nw4r
snd
snd_Sound3DCalculator.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2