![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
Everything the mixer needs to know about one voice, pushed every frame. More...
#include <audio_device.h>
Public Member Functions | |
| float | heardMinDistance () const |
| The near distance as the mixer takes it. | |
| float | heardMaxDistance () const |
| The far distance as the mixer takes it. | |
| bool | hasFar () const |
| Whether the voice fades with distance and so has a range past which it is silent. | |
Public Attributes | |
| float | volume = 1.0f |
| Linear gain for this voice, multiplied into the master. | |
Everything the mixer needs to know about one voice, pushed every frame.
A snapshot rather than a component reference: the device must not know the ECS.
|
inline |
The near distance as the mixer takes it.
It is multiplied into the per-sample gain, so bad values are read as zero.
|
inline |
The far distance as the mixer takes it.
|
inline |
Whether the voice fades with distance and so has a range past which it is silent.
| float Vkm::Engine::VoiceParams::volume = 1.0f |
Linear gain for this voice, multiplied into the master.
Negative and non-finite values are heard as silence, since one infinite gain would take the whole mix non-finite.