![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
The ear: the pose every spatial source is heard relative to. More...
#include <audio_listener.h>
Public Attributes | |
| float | volume = 1.0f |
| Master gain for everything this listener hears. | |
The ear: the pose every spatial source is heard relative to.
One is active at a time: the lowest-slot enabled one with a Transform; not tied to the camera. With none, spatial sources stay silent while 2D ones play on.
| float Vkm::Engine::AudioListener::volume = 1.0f |
Master gain for everything this listener hears.
A linear gain, not a perceptual slider position: drive it with position^2 or a decibel curve. A negative or non-finite value is heard as silence, since an infinite master gain would take the whole mix non-finite.