class
FAmbienceZoneSolver
The pure rules behind AudioAmbienceZone components, apart from the audio engine so they can be tested by value.
- Module
- Audio
- Header
#include "Audio/AmbienceZones.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
float | ComputeWeight | 1 inside the zone, falling to 0 over fadeDistance outside it. |
int32_t | Select | Index of the zone that sounds: highest priority among those with weight, the larger weight breaking a tie; -1 when none has any. |
float | Glide | Moves gain toward target at ratePerSecond of the full range. |
float | EqualPower | Equal-power loudness of a bed whose crossfade position is gain (0..1): two beds whose gains sum to 1 sum to constant power. |
std::vector<std::string> | SplitPaths | "a.wav;b.wav" into its clips. |
Function details
ComputeWeight
C++
static float ComputeWeight(const AudioAmbienceZoneComponent& zone, const Vec3& zoneCenter, const Vec3& listenerPos)1 inside the zone, falling to 0 over fadeDistance outside it.
Select
C++
static int32_t Select(const FCandidate* candidates, int32_t count)Index of the zone that sounds: highest priority among those with weight, the larger weight breaking a tie; -1 when none has any.
Glide
C++
static float Glide(float gain, float target, float ratePerSecond, float deltaTime)Moves gain toward target at ratePerSecond of the full range.
EqualPower
C++
static float EqualPower(float gain)Equal-power loudness of a bed whose crossfade position is gain (0..1): two beds whose gains sum to 1 sum to constant power.
SplitPaths
C++
static std::vector<std::string> SplitPaths(const std::string& list)"a.wav;b.wav" into its clips.
Generated from Audio/AmbienceZones.h via audio.json · Dec 5, 2026Version 1.1.0