vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::AudioListener Struct Reference

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.

Detailed Description

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.

Member Data Documentation

◆ volume

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.


The documentation for this struct was generated from the following file: