TDME2
1.9.121
Toggle main menu visibility
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
a
b
c
e
f
g
i
l
m
n
r
s
t
u
v
Enumerator
a
b
c
e
f
g
i
k
l
m
n
o
r
s
t
v
Related Functions
a
b
c
e
f
g
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
a
b
c
e
f
g
k
m
o
p
r
s
t
Functions
c
g
m
o
p
r
s
t
Variables
Macros
a
b
c
e
f
g
k
m
p
s
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
tdme
audio
AudioEntity.cpp
Go to the documentation of this file.
1
#include <
tdme/audio/AudioEntity.h
>
2
3
#include <string>
4
5
#include <
tdme/tdme.h
>
6
#include <
tdme/math/Vector3.h
>
7
8
using
std::string;
9
10
using
tdme::audio::AudioEntity
;
11
using
tdme::math::Vector3
;
12
13
AudioEntity::AudioEntity(
const
string
&
id
)
14
{
15
this->
id
=
id
;
16
looping
=
false
;
17
fixed
=
false
;
18
pitch
= 1.0f;
19
gain
= 1.0f;
20
sourcePosition
.
set
(0.0f, 0.0f, 0.0f);
21
sourceDirection
.
set
(0.0f, 0.0f, 0.0f);
22
sourceVelocity
.
set
(0.0f, 0.0f, 0.0f);
23
}
24
25
AudioEntity::~AudioEntity
() {
26
}
27
AudioEntity.h
Vector3.h
tdme::audio::AudioEntity
Audio entity base class.
Definition:
AudioEntity.h:20
tdme::audio::AudioEntity::pitch
float pitch
Definition:
AudioEntity.h:27
tdme::audio::AudioEntity::looping
bool looping
Definition:
AudioEntity.h:25
tdme::audio::AudioEntity::sourcePosition
Vector3 sourcePosition
Definition:
AudioEntity.h:29
tdme::audio::AudioEntity::~AudioEntity
virtual ~AudioEntity()
Constructor.
Definition:
AudioEntity.cpp:25
tdme::audio::AudioEntity::fixed
bool fixed
Definition:
AudioEntity.h:26
tdme::audio::AudioEntity::sourceDirection
Vector3 sourceDirection
Definition:
AudioEntity.h:30
tdme::audio::AudioEntity::gain
float gain
Definition:
AudioEntity.h:28
tdme::audio::AudioEntity::id
string id
Definition:
AudioEntity.h:24
tdme::audio::AudioEntity::sourceVelocity
Vector3 sourceVelocity
Definition:
AudioEntity.h:31
tdme::math::Vector3
3D vector 3 class
Definition:
Vector3.h:22
tdme::math::Vector3::set
Vector3 & set(float x, float y, float z)
Set up vector.
Definition:
Vector3.h:73
tdme.h
Generated by
1.9.3