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

ReturnsNameDescription
floatComputeWeight1 inside the zone, falling to 0 over fadeDistance outside it.
int32_tSelectIndex of the zone that sounds: highest priority among those with weight, the larger weight breaking a tie; -1 when none has any.
floatGlideMoves gain toward target at ratePerSecond of the full range.
floatEqualPowerEqual-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