Audio class that represents a sound source, that emits sound.
More...
Audio class that represents a sound source, that emits sound.
◆ SoundEmitter()
Nz::SoundEmitter::SoundEmitter |
( |
const SoundEmitter & |
emitter | ) |
|
|
protected |
Constructs a SoundEmitter object which is a copy of another.
- Parameters
-
◆ EnableSpatialization()
void Nz::SoundEmitter::EnableSpatialization |
( |
bool |
spatialization | ) |
|
Enables spatialization.
- Parameters
-
spatialization | True if spatialization is enabled |
◆ GetAttenuation()
float Nz::SoundEmitter::GetAttenuation |
( |
| ) |
const |
Gets the attenuation.
- Returns
- Amount that your sound will drop off as by the inverse square law
◆ GetInternalStatus()
SoundStatus Nz::SoundEmitter::GetInternalStatus |
( |
| ) |
const |
|
protected |
Gets the status of the sound emitter.
- Returns
- Enumeration of type SoundStatus (Playing, Stopped, ...)
◆ GetMinDistance()
float Nz::SoundEmitter::GetMinDistance |
( |
| ) |
const |
Gets the minimum distance to hear.
- Returns
- Distance to begin to hear
◆ GetPitch()
float Nz::SoundEmitter::GetPitch |
( |
| ) |
const |
Gets the pitch.
- Returns
- Pitch of the sound
◆ GetPosition()
Vector3f Nz::SoundEmitter::GetPosition |
( |
| ) |
const |
Gets the position of the emitter.
- Returns
- Position of the sound
◆ GetVelocity()
Vector3f Nz::SoundEmitter::GetVelocity |
( |
| ) |
const |
Gets the velocity of the emitter.
- Returns
- Velocity of the sound
◆ GetVolume()
float Nz::SoundEmitter::GetVolume |
( |
| ) |
const |
Gets the volume of the emitter.
- Parameters
-
volume | Float between [0, inf) with 100.f being the default |
◆ IsSpatialized()
bool Nz::SoundEmitter::IsSpatialized |
( |
| ) |
const |
Checks whether the sound emitter has spatialization enabled.
- Returns
- true if it the case
◆ SetAttenuation()
void Nz::SoundEmitter::SetAttenuation |
( |
float |
attenuation | ) |
|
Sets the attenuation.
- Parameters
-
attenuation | Amount that your sound will drop off as by the inverse square law |
◆ SetMinDistance()
void Nz::SoundEmitter::SetMinDistance |
( |
float |
minDistance | ) |
|
Sets the minimum distance to hear.
- Parameters
-
minDistance | to begin to hear |
◆ SetPitch()
void Nz::SoundEmitter::SetPitch |
( |
float |
pitch | ) |
|
Sets the pitch.
- Parameters
-
◆ SetPosition() [1/2]
void Nz::SoundEmitter::SetPosition |
( |
const Vector3f & |
position | ) |
|
Sets the position of the emitter.
- Parameters
-
position | Position of the sound |
◆ SetPosition() [2/2]
void Nz::SoundEmitter::SetPosition |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
Sets the position of the emitter.
- Parameters
-
position | Position of the sound with (x, y, z) |
◆ SetVelocity() [1/2]
void Nz::SoundEmitter::SetVelocity |
( |
const Vector3f & |
velocity | ) |
|
Sets the velocity of the emitter.
- Parameters
-
velocity | Velocity of the sound |
◆ SetVelocity() [2/2]
void Nz::SoundEmitter::SetVelocity |
( |
float |
velX, |
|
|
float |
velY, |
|
|
float |
velZ |
|
) |
| |
Sets the velocity of the emitter.
- Parameters
-
velocity | Velocity with (velX, velY, velZ) |
◆ SetVolume()
void Nz::SoundEmitter::SetVolume |
( |
float |
volume | ) |
|
Sets the volume of the emitter.
- Parameters
-
volume | Float between [0, inf) with 100.f being the default |
The documentation for this class was generated from the following files: