class
FAudioSpatialization
FAudioSpatialization — the registry and the switch. "Native" (always present) is miniaudio's own spatializer; "Panner", registered by the engine, is an equal-power panner with inverse-distance gain — the reference implementation of the seam and a portable fallback. The active one is audio.Spatializer (project config or console) or SetActive; an unknown name falls back to Native with a warning. AudioEngine::UpdateVoices drives the active spatializer for every playing spatial voice. Main thread only.
- Module
- Audio
- Header
#include "Audio/AudioSpatialization.h"- Namespace
Mowo
Type aliases
| Alias | Description |
|---|---|
using FFactory = std::function<std::unique_ptr<IAudioSpatializer>()> |
Properties
| Type | Name | Description |
|---|---|---|
static constexpr const char* | kNative | Default "Native". |
static constexpr const char* | kPanner | Default "Panner". |
Public functions
| Returns | Name | Description |
|---|---|---|
void | Register | |
bool | Unregister | |
bool | SetActive | |
const std::string& | GetActiveName | |
IAudioSpatializer* | GetActive | |
std::vector<std::string> | GetNames | |
void | SyncFromConsole | Applies the audio.Spatializer cvar when it changed. |
void | EqualPowerPan | The reference law, public so a plugin can fall back to it. |
Function details
Register
C++
static void Register(const std::string& name, FFactory factory)Unregister
C++
static bool Unregister(const std::string& name)SetActive
C++
static bool SetActive(const std::string& name)GetActiveName
C++
static const std::string& GetActiveName()GetActive
C++
static IAudioSpatializer* GetActive()GetNames
C++
static std::vector<std::string> GetNames()SyncFromConsole
C++
static void SyncFromConsole()Applies the audio.Spatializer cvar when it changed.
EqualPowerPan
C++
static void EqualPowerPan(const FSpatializeInput& input, FSpatializeOutput& output)The reference law, public so a plugin can fall back to it.
Generated from Audio/AudioSpatialization.h via audio.json · Oct 26, 2026Version 1.0.0