Audio class that represents the module initializer of Audio.
More...
Audio class that represents the module initializer of Audio.
◆ GetAudioFormat()
AudioFormat Nz::Audio::GetAudioFormat |
( |
unsigned int |
channelCount | ) |
|
|
static |
Gets the format of the audio.
- Returns
- AudioFormat Enumeration type for the format
- Parameters
-
channelCount | Number of channels |
◆ GetDopplerFactor()
float Nz::Audio::GetDopplerFactor |
( |
| ) |
|
|
static |
Gets the factor of the doppler effect.
- Returns
- Global factor of the doppler effect
◆ GetGlobalVolume()
float Nz::Audio::GetGlobalVolume |
( |
| ) |
|
|
static |
Gets the global volume.
- Returns
- Float between [0, inf) with 100.f being the default
◆ GetListenerDirection()
Vector3f Nz::Audio::GetListenerDirection |
( |
| ) |
|
|
static |
Gets the direction of the listener.
- Returns
- Direction of the listener, in front of the listener
- See also
- GetListenerRotation
◆ GetListenerPosition()
Vector3f Nz::Audio::GetListenerPosition |
( |
| ) |
|
|
static |
◆ GetListenerRotation()
Gets the rotation of the listener.
- Returns
- Rotation of the listener
◆ GetListenerVelocity()
Vector3f Nz::Audio::GetListenerVelocity |
( |
| ) |
|
|
static |
◆ GetSpeedOfSound()
float Nz::Audio::GetSpeedOfSound |
( |
| ) |
|
|
static |
Gets the speed of sound.
- Returns
- Speed of sound
◆ Initialize()
bool Nz::Audio::Initialize |
( |
| ) |
|
|
static |
Initializes the Audio module.
- Returns
- true if initialization is successful
◆ IsFormatSupported()
bool Nz::Audio::IsFormatSupported |
( |
AudioFormat |
format | ) |
|
|
static |
Checks whether the format is supported by the engine.
- Returns
- true if it is the case
- Parameters
-
◆ IsInitialized()
bool Nz::Audio::IsInitialized |
( |
| ) |
|
|
static |
Checks whether the module is initialized.
- Returns
- true if module is initialized
◆ SetDopplerFactor()
void Nz::Audio::SetDopplerFactor |
( |
float |
dopplerFactor | ) |
|
|
static |
Sets the factor of the doppler effect.
- Parameters
-
dopplerFactor | Global factor of the doppler effect |
◆ SetGlobalVolume()
void Nz::Audio::SetGlobalVolume |
( |
float |
volume | ) |
|
|
static |
Sets the global volume.
- Parameters
-
volume | Float between [0, inf) with 100.f being the default |
◆ SetListenerDirection() [1/2]
void Nz::Audio::SetListenerDirection |
( |
const Vector3f & |
direction | ) |
|
|
static |
◆ SetListenerDirection() [2/2]
void Nz::Audio::SetListenerDirection |
( |
float |
dirX, |
|
|
float |
dirY, |
|
|
float |
dirZ |
|
) |
| |
|
static |
◆ SetListenerPosition() [1/2]
void Nz::Audio::SetListenerPosition |
( |
const Vector3f & |
position | ) |
|
|
static |
Sets the position of the listener.
- Parameters
-
position | Position of the listener |
- See also
- SetListenerVelocity
◆ SetListenerPosition() [2/2]
void Nz::Audio::SetListenerPosition |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
|
static |
Sets the position of the listener.
- Parameters
-
(x,y,z) | Position of the listener |
- See also
- SetListenerVelocity
◆ SetListenerRotation()
void Nz::Audio::SetListenerRotation |
( |
const Quaternionf & |
rotation | ) |
|
|
static |
Sets the rotation of the listener.
- Parameters
-
rotation | Rotation of the listener |
◆ SetListenerVelocity() [1/2]
void Nz::Audio::SetListenerVelocity |
( |
const Vector3f & |
velocity | ) |
|
|
static |
Sets the velocity of the listener.
- Parameters
-
velocity | Velocity of the listener |
- See also
- SetListenerPosition
◆ SetListenerVelocity() [2/2]
void Nz::Audio::SetListenerVelocity |
( |
float |
velX, |
|
|
float |
velY, |
|
|
float |
velZ |
|
) |
| |
|
static |
Sets the velocity of the listener.
- Parameters
-
(velX,velY,velZ) | Velocity of the listener |
- See also
- SetListenerPosition
◆ SetSpeedOfSound()
void Nz::Audio::SetSpeedOfSound |
( |
float |
speed | ) |
|
|
static |
Sets the speed of sound.
- Parameters
-
◆ Uninitialize()
void Nz::Audio::Uninitialize |
( |
| ) |
|
|
static |
Uninitializes the Audio module.
The documentation for this class was generated from the following files:
- include/Nazara/Audio/Audio.hpp
- src/Nazara/Audio/Audio.cpp