Skip to main content

The Audio Mixer

The mixer describes how every sound in your project is combined: the bus hierarchy events route into, the effects on those buses, the reverb returns, the volume groups your options menu drives, and the snapshots that reshape the mix at runtime.

A project has one mixer asset. Create it with New → Audio Mixer and load it in your scene with a plAudioMixerLoaderComponent.

Without a loaded mixer, events still play — they route straight to the output with no buses, effects or snapshots.


The Mixer Console window​

AudioMixer.png

  • Routing (left) — the bus tree, VCAs and snapshots. Click any entry to select and edit it.
  • Channel strips (centre) — one per bus, dashed strips for VCAs, Master first. Drag a fader to set volume; click a strip to edit it in Properties.
  • Snapshots (right) — every snapshot with its override count, fade times and priority.
  • Status bar — counts of buses, VCAs, snapshots and insert effects.

The meter areas next to the faders are placeholders in the asset editor; live metering requires a running game.


Buses​

A bus is a mixing channel. The first bus in the list is always the Master bus — everything ends up there.

Add one with + Bus, then set its properties:

PropertyDescription
NameThe name events and VCAs reference. Matching is case-insensitive.
ParentWhich bus this one feeds. Empty means Master. The Master bus itself ignores this.
VolumeBus volume in dB. Also draggable directly on the strip.
PitchPitch multiplier for everything on the bus.
IsAuxMarks this as an aux/return bus (see below).
EnvironmentAux buses only: the reverb-zone name that feeds this bus.
EffectsInsert effect chain, applied in order.
SendsAux sends to return buses.

A typical layout:

Master
├── Music
├── SFX
│ ├── Weapons
│ └── Footsteps
├── Ambience
├── Voice
└── Reverb ⤺ (aux)

Aux buses and sends​

An aux bus is a return channel — usually one reverb shared by many sources, which is far cheaper than a reverb per bus.

  1. Click + Aux Bus and name it (e.g. Reverb).
  2. Add a Reverb effect to its Effects.
  3. Feed it either way:
    • Constant send — on any bus, add a Sends entry targeting the aux bus with a level in dB.
    • Reverb zones — set the aux bus's Environment name and place environment components in the scene; sounds inside the zone are sent to that bus automatically. See Spatial Audio.

Aux buses normally have their reverb effect set to fully wet (wet 1.0, dry 0.0), since the dry signal already reaches the master through the normal routing.


Insert effects​

Each bus has an ordered effect chain. Add entries to its Effects list and pick a Type.

The Params array holds that effect's values. Leave Params empty to use sensible defaults; add entries only for the slots you want to change.

EffectParameter slots
LowPass0 cutoff Hz, 1 order (1–8)
HighPass0 cutoff Hz, 1 order (1–8)
Eq30 low gain dB, 1 low freq Hz, 2 mid gain dB, 3 mid freq Hz, 4 mid Q, 5 high gain dB, 6 high freq Hz
Delay0 delay ms, 1 feedback 0–1, 2 wet 0–1, 3 dry 0–1
Reverb0 room size 0–1, 1 damping 0–1, 2 width 0–1, 3 wet 0–1, 4 dry 0–1
Compressor0 threshold dB, 1 ratio, 2 attack ms, 3 release ms, 4 makeup dB
Limiter0 ceiling dB, 1 release ms

Two practical notes:

  • A Limiter on the Master bus is cheap insurance against clipping when many sounds overlap.
  • The Delay effect's delay time is fixed when the mixer loads; feedback and wet/dry can change at runtime (including from snapshots), but the time itself cannot.

VCAs​

A VCA is a named gain applied on top of a set of buses — what you wire your options-menu sliders to. It is pure gain: a VCA has no effects and no meter.

PropertyDescription
NameThe name used by SetSoundGroupVolume.
VolumeThe VCA's gain in dB.
BusesNames of the buses it controls.

Example: a VCA named SFX Volume controlling SFX and Ambience lets one slider ride both without disturbing their relative balance.

plSoundInterface::GetSingleton()->SetSoundGroupVolume("SFX Volume", 0.5f);

The name is matched against buses and VCAs, so you can point a slider at either.


Snapshots​

A snapshot is a set of mixer overrides that fades in and out — "Underwater", "Cave", "Pause Menu".

Add one with + Snapshot:

PropertyDescription
NameReferenced by plAudioSnapshotComponent and script.
FadeIn / FadeOutBlend times in seconds.
PriorityWhen several snapshots are active, higher priority is applied later and therefore wins.
OverridesThe properties this snapshot changes.

Each override targets one property:

FieldMeaning
BusName of the bus being overridden.
TargetBusVolume, BusPitch, SendLevel or EffectParam.
IndexAFor SendLevel: the send index. For EffectParam: the effect index on that bus.
IndexBFor EffectParam: the parameter slot.
ValueThe absolute value to blend toward.

A worked "Underwater" example:

BusTargetIndexAIndexBValueEffect
MasterEffectParam00800Master's first effect (a LowPass) drops to 800 Hz
AmbienceBusVolume––-6Ambience ducks by 6 dB
SFXSendLevel0–-4SFX's first send pushes more into reverb

Values are absolute targets, not deltas. At intensity 0 the authored mixer value is used; at 1 the override value is used; in between it blends smoothly.

Triggering snapshots​

Add a plAudioSnapshotComponent — for example on a trigger volume, so entering a cave fades the "Cave" snapshot in and leaving fades it out. Snapshots can also be driven from script.


How the mix is calculated​

Understanding the order helps when a value does not do what you expect:

  1. Each bus starts from its authored Volume / Pitch / send levels / effect parameters.
  2. Active snapshots blend their overrides in, applied in ascending Priority, each scaled by its current intensity.
  3. VCA gains multiply the resulting volume of every bus they control.
  4. The final values are handed to the audio backend.

All of this happens on the audio thread; the backend only ever receives final numbers, which is why snapshots and VCAs behave identically no matter which sound backend is active.


Validation​

The mixer is validated when the asset is transformed. Common errors:

MessageCause
Bus 'X' references unknown parent bus 'Y'Parent does not match any bus Name.
Bus 'X' sends to unknown bus 'Y'A send's TargetBus does not exist.
VCA 'X' references unknown bus 'Y'A VCA lists a bus that does not exist.
Snapshot 'X' overrides unknown bus 'Y'An override's Bus does not exist.
Bus N has no nameEvery bus needs a name.
A mixer supports at most 250 busesReduce the bus count.

Names are matched case-insensitively, but renaming a bus does not update references to it — fix Parent, Sends, VCA Buses, snapshot Bus fields and any event's OutputBus by hand.