Skip to content

Audio Architecture

How sound is routed, prioritized, and triggered in Project Eternal. Built on the UE 5.8 native stack (MetaSounds + Quartz + Audio Modulation + Submixes + AudioGameplayVolume) — no middleware (ruling D1, ImplementationDocs/archive/AudioAndMusic.plan.md; FMOD via AudioLink is the written fallback, not the plan).

The mix hierarchy (the law)

Priority order the whole graph encodes:

player abilities > incoming threat tells (boss/elite wind-ups) > kill & loot confirms > enemy foley/vocals > ambience/music bed

Two protected rules:

  • Heartbeat is stamina-owned. It lives on its own bus that survives voice-limiting and ducks everything else. Nothing else may play on it (ScreenEffectsConfig.h reserves the channel).
  • Loot/item audio is state-keyed, never rarity-keyed (D3). There are no rarity tiers in this game; stingers key off item state (Sealed / Awakening / Greed bands / Consumption) and affix significance.

The bus graph

All routing assets live in Content/Audio/_Common/Mix/ and are registered in Config/DefaultGame.ini under [/Script/ProjectEternal.EternalAudioSettings] (class: UEternalAudioSettings, Source/ProjectEternal/Public/Audio/Data/EternalAudioSettings.h).

SMX_Master ── SMX_Music        SCL_Master ── SCL_Music
           ├─ SMX_SFXCombat               ├─ SCL_SFXCombat
           │   ├─ SMX_WeaponTravel
           │   └─ SMX_WeaponImpact
           ├─ SMX_SFXWorld                ├─ SCL_SFXWorld
           ├─ SMX_Ambience                ├─ SCL_Ambience
           ├─ SMX_UI                      ├─ SCL_UI
           ├─ SMX_Voice                   ├─ SCL_Voice
           └─ SMX_Heartbeat               └─ SCL_Heartbeat
  • Submixes (SMX_) carry the signal and are where effects/analysis/ducking attach. A sound reaches its bus submix through its class. Each SCL_ class sets DefaultSubmix to its bus's SMX_ (the break class to SMX_SFXCombat), so a sound only has to carry the right class. The engine resolves a sound's output as: its own Base Submix if set (the weapon duck and the foley sounds use one), else its class's DefaultSubmix, else [/Script/Engine.AudioSettings] BaseDefaultSubmix (SMX_Master). Until 2026-10-17 no class set it, so everything played on Master and the SCB_AmbienceVolume duck on SMX_Ambience acted on silence. Sounds outside the class tree (the UltraDynamicSky plugin's weather and outdoor sounds) still play on Master.
  • SoundClasses (SCL_) exist for legacy cue/wave grouping and coarse volume control. DefaultSoundClassName is SCL_Master. The class tree mirrors the submix tree one-to-one.
  • Concurrency (SCC_) caps voices per bus (table below). A cap only exists on the sounds that name it: concurrency is a per-asset property, not something a bus hands down. Every playable sound carries its bus's cap, and the audit keeps it that way (Enforcement). The root bus has no cap of its own.
Bus Voices When full
SFXCombat 16 Stop the lowest-priority voice (the break sound outranks the rest)
SFXWorld 12 Stop the farthest, then the oldest
Ambience 16 Refuse the new sound
Music 8 Refuse the new sound
UI 6 Stop the oldest
Voice 4 Stop the oldest
Heartbeat 1 Stop the oldest

A bus made of persistent loops must refuse, not evict. A loop that is refused a voice is parked as a virtual loop and comes back when one frees up. A loop that is already playing and gets evicted is stopped for good: nothing restarts it. Evicting is right for one-shots, where the old sound was about to end anyway; on Music it would kill a stem that is never started again, and on Ambience it would silence a placed emitter until the level reloads. The combat bus does hold two loops (arrow flight, shock crackle) and evicts on purpose: under pressure an impact should win over them. - Break class (SCL_SFXCombatBreak) is a child of SCL_SFXCombat holding the sounds that mark a stance break. It exists so those sounds can duck their own parent — see Ducking a beat out of its own bus. - Control buses (SCB_CombatIntensity, SCB_Depth, SCB_Greed) are the AudioModulation hooks for gameplay-driven mixing. Since plan 2.4 UEternalMusicSubsystem is the sole writer of CombatIntensity (music state → 0..1) and Depth (node depth, plus a sub-percent shared stem detune — the cheap first cut of depth-distortion). The combat duck rides a fourth bus, SCB_AmbienceVolume (volume semantics, attached to SMX_Ambience output volume modulation); the mapping lives in the subsystem. SCB_Greed stays unbound until plan 4.1.

The legacy foley submixes (SMX_Final/SMX_Foley/SMX_Ambient/SMX_Reverb under Content/Audio/Movement/Mix/) came with the (since-removed) foley marketplace pack. The surviving MSS_FoleySound_* sources are the game's footsteps (Footsteps) and output to SMX_Foley. SMX_Final (their root) is parented under SMX_SFXWorld, so the whole graph is one tree. Nothing sends to SMX_Reverb any more. Merging them away entirely is Phase 1 work.

Voice limit, output buffer and master limiter

Three settings sit above the buses and protect the whole mix.

  • 64 voices. The mixer plays at most this many sounds at once and drops the lowest-priority, quietest ones beyond it. The bus caps sum to 63, and the engine default of 32 sat under them. The limit is set twice in Config/DefaultEngine.ini and both are needed: AudioMaxChannels under [/Script/WindowsTargetPlatform.WindowsTargetSettings] sizes the mixer when the device starts, and the QualityLevels entry under [/Script/Engine.AudioSettings] is what the game applies at run time. With only the first, the log says 64 and the game still runs at 32. Read the live value with Eternal.Audio.MixerStats (voices in use, the limit, buffer size and count). A busy fight measured 17 voices at most (four cultists and a shield bearer, 2026-11-16), so the limit is headroom, not load. The Steam Deck uses the same value; if it ever needs fewer, au.SetAudioChannelCount goes in [SteamDeck DeviceProfile].
  • Two output buffers queued (AudioNumBuffersToEnqueue = 2, 1024 frames each). With one, any hitch longer than 21 ms starved the output and it crackled. The second buffer costs 21 ms of latency on every sound.
  • A limiter on SMX_Master, Mix/Effects/SFXP_MasterLimiter: limiter mode, threshold −2 dBFS, attack 0.5 ms, release 100 ms, 3 ms look-ahead (3 ms of latency), no knee, peak detection with the channels linked, no make-up gain, analog mode off. It is a safety net for stacked hits, not part of the sound: the same fight peaked at −5 dBFS, under the threshold, so in normal play it does nothing. If a recording shows it working all the time, the mix under it is too hot. The engine's limiter overshoots its threshold by a decibel or two on a sudden stack, which is why the threshold is not nearer 0: twelve impacts fired in one frame clipped 145 samples with no limiter, 13 at −1 dBFS with a 1 ms attack, none at these values (harness scenario audio_probe, phase stack; au.BypassAllSubmixEffects 1 gives the unlimited take).

Voice priority

When a bus cap or the voice limit is reached, the sound with the lowest priority loses its voice (within a priority, the quietest). Every sound used to sit at the default 1 except the stance break, so a footstep could take a voice from a hit. The ladder, on each sound's Priority:

Priority Sounds
10 The stance break (MSS_Poise_Sunder)
8 A hit on the local player: the impact row plays at this priority when its target is the pawn the local player drives (FAudioEffectLayer::LocalPlayerHitPriority)
5 Crit, parry and its weapon layer, the telegraph stings, the break heal, the Toll bell
3 Hits: the six impacts, both blocks, punch, shield smash, the poise stagger
2 Travel: every swing, the uppercuts, the charge levels, the blood payment
1 Everything not listed (loops, creature cues, world one-shots, UI, music)
0.5 Footsteps and the torch loops

The values live in Tools/Python/audio_release_mix.py (PRIORITIES), which writes them. A new combat sound takes the value of its row; add it to the table there.

Footsteps

The ALS footstep notify (UAlsAnimNotify_FootstepEffects) resolves the surface under the foot and plays that surface's sound from FES_Als_Default (in the ALS plugin): presets of MSS_FoleySound, one per surface (Content/Audio/Movement/Foley/MetaSounds/), class SCL_SFXWorld, submix SMX_Foley (−10 dB), attenuation SAT_FootstepsSoundAttenuation. What keeps them in their place:

  • Level. Volume 0.12 on every preset, and each preset's Gain brings its set to the dirt set's loudness (grass 1.29, sand 1.64, gravel 0.70; dirt, water and the delivered mud set 1.0). A running step on dirt measures 13 dB under a hit in game. Before 2026-11-16 it was 6 dB under, and grass and sand (Gain 3.0) played 5 to 7 dB over dirt.
  • Falloff. Full level within 1 m of the listener, then down to silence at 21 m. The listener sits at the character, so the player's own steps keep their level and an enemy's fall away from the first metre: 6 dB down at 3 m, 12 dB at 5 m. The inner radius used to be 4 m, so every enemy near the player stepped as loud as the player.
  • No reverb. The presets sent at full level to SMX_Reverb, whose preset delays its first reflections by 100 ms: every step came with a slap a tenth of a second behind it, which read as a second step.
  • One voice per character per surface, and no second step within 0.12 s (the preset's own concurrency: limit to owner, retrigger 0.12 s). The notify spawns the sound for the character, not the world. With the world as context every character shared one owner, so the cap was one voice per surface for the whole level and an enemy's step cut off the player's. The retrigger swallows the doubles the animations make: a blended cycle fires both cycles' notifies, and the backward walk and run cycles carry two sound notifies 0.1 s apart for one step. The fastest real steps (sprint) are 0.3 s apart.
  • The step starts when the foot lands. The dirt takes (the default surface) opened on up to 0.25 s of silence and peaked 0.2 to 0.4 s in, so the step was heard that long after the foot landed, and rang for half a second after. SW_Foley_Dirt_Short_01-06 are the same takes cut to the step (0.40 s, by Tools/Python/footstep_dirt_trim.py); measured in game the step's loudest moment moved from 0.24 s after the notify to 0.05 s. The Prelude cutscene still plays the uncut takes.
  • Loaded before the first step. The surface sounds are soft references. UAlsFootstepEffectsSettings loads them when it loads itself (with the character's animations), so the first step on a surface no longer waits for a synchronous load. UCombatEffectsManager does the same for every sound in the combat effects configuration at BeginPlay.

log LogAls Verbose lists every footstep sound the notify asks for (time, character, foot, volume, sound). The harness scenario audio_probe records the steps and Tools/Harness/audio_probe_read.py reads level, timing and doubles out of the recording and that log.

Trigger layers (how a sound gets played)

Layer Mechanism Status
Montage-timed combat SFX UAnimNotify_CombatEffect → UCombatEffectsManager::TriggerSoundEffect → the row's FAudioEffectLayer Working, data-driven, mostly unpopulated
Weapon × surface impacts UCombatEffectsConfiguration impact matrix; surface from UCombatEffectsSettings::ResolveSurfaceMaterial → GetSurfaceTag Working; surface axis fully mapped, Slash/Blunt/Pierce authored against Flesh, Metal and Wood (Wood has no sound yet; see below)
GameplayCues (GAS) UEternalGameplayCueManager + UGameplayCueAudioConfig registry (tag→sound rows, zero code); weapon-identity/aura loops on their configs Working since plan 1.2; loop content is an external-delivery gap (plan 3.x)
Item pickup/equip FItemManifest fragments (2D sounds) Working; all equipment manifests covered
UI buttons FSlateSound on each plain UButton's style (fleet-wired; CommonButton migration later moves these to style assets) Working since plan 1.4
Music UEternalMusicSubsystem (GameInstance, client-only) + UMusicStateAsset stems sample-locked on a Quartz clock; bar-quantized state fades. Zone sets the base state; the replicated State.InCombat tag (UCombatEngagementSubsystem, server) overlays Combat Working since plan 2.1; placeholder content (menu theme) until commissioned stems land
Ambience beds AudioGameplayVolumes + bed assets Does not exist yet; plan 2.3
Screen effects FScreenEffectDefinition.Sound — big-hit one-shot + low-health-gate sting, owner-local 2D Read since plan 1.4; assets are an external-delivery gap. Never a heartbeat, never a loop

Ducking a beat out of its own bus

A poise break happens inside the hit that caused it, so its shatter sound arrives on the same bus, in the same frame, as a full impact row. The first attempt at fixing that turned the shatter down relative to the hit — the wrong direction, and it made the problem worse.

The shipped answer is a sidechain at mix level:

SCL_SFXCombat  <-- ducked to ~0.45 for ~0.3s
      |            by a passive mix, children excluded
      +-- SCL_SFXCombatBreak  <-- the shatter lives here, so it is NOT ducked

Mix_SunderDuck is a passive USoundMix that lowers SCL_SFXCombat while excluding its children, with a fast fade in and a slower fade out. The break sound sits on the child class and carries a raised priority, so it wins voice stealing as well. Zero gameplay code — the whole fix is asset configuration.

The mix's Duration must stay set (0.25 s). A passive mix with Duration -1 holds for as long as a sound of the class plays, and the shatter takes are 1.3 to 1.7 s long: every hit, swing and skill sound after a break then played 7 dB down for a second and a half, and in a crowd one break's dip ran into the next. Hits read as missing (owner, 2026-11-15). With a duration the mix ends by itself (0.05 s in, 0.25 s held, 0.25 s out) while the shatter rings on, and each new break sound starts it again. Measured in game with a 4 s sound on SCL_SFXCombat under a break: back at full level about 0.6 s after the break starts.

Generalised: when one sound must own a beat, give it its own child class and duck the parent. Turning the competing sounds down individually does not scale and inverts the moment the row is re-authored.

The wider rule this serves — one dominant channel per beat, big events replace small ones rather than adding to them — is documented in Break Presentation, which covers the non-audio channels (VFX, camera shake, hit stop, screen flash) the same beat also claims.

Weapon travel ducks under impacts

The sound designer's mix rule: a whoosh dips the moment a weapon lands, so the hit reads clean. Travel sounds (swings, arrow swoosh, arrow loop) output to SMX_WeaponTravel, hits (impacts, blocks, parry, punch) to SMX_WeaponImpact, both under SMX_SFXCombat. A compressor on travel, Mix/Effects/SFXP_WeaponTravelDuck, is keyed by the impact submix: threshold −18 dB, 2:1, attack 3 ms, release 200 ms, knee 2 dB, peak detection, no look-ahead, unity gains. Hits reach the key at about −9 to −14 dBFS, so a whoosh dips 2 to 4.5 dB. The designer's starting values (−25 dB, 10:1) took 8 to 12 dB, and against a target every swing connects with, the whooshes all but vanished.

A sound joins either side by naming the submix as its Base Submix. That is stamped per sound by Tools/Python/combat_weapon_ducking.py from explicit lists; re-run it after adding a travel or impact sound. Submix parenting is read-only to Python, so each submix was parented once through EternalAuthoringToolset.SetSubmixParent; the script reports whether they still are.

The parry ducks under a stance break. The designer's second rule: a parry that only chips poise rings out (its tail runs ~4 s), but a parry that breaks the stance hands the moment to the break, and the parry stays down while the break rings. The parry and its weapon layer output to SMX_Parry, a child of SMX_WeaponImpact (so a parry still ducks the whooshes); the break shatter (MSS_Poise_Sunder) outputs to SMX_StanceBreak under SMX_SFXCombat. Mix/Effects/SFXP_ParryBreakDuck on SMX_Parry is keyed by SMX_StanceBreak: threshold −35 dB, 20:1, attack 1 ms, release 1000 ms, no knee. Measured in PIE, the parry's ring drops ~20 dB the moment the break plays. The low threshold already holds the duck through the shatter's 3 s tail, so the release only has to cover the gap after it. The designer's 4500 ms kept every parry for ~7 s after a break muted, and a parry chain against an enemy back on its feet (a break lasts 3.5 s) went silent from the third parry on. This sits alongside Mix_SunderDuck, which still dips the whole combat class for the break's first 0.3 s.

SMX_SFXCombat
  SMX_WeaponTravel   <- swings, arrow swoosh, arrow loop   [SFXP_WeaponTravelDuck, key: SMX_WeaponImpact]
  SMX_WeaponImpact   <- impacts, blocks, punch, shield smash
    SMX_Parry        <- parry, parry weapon layer          [SFXP_ParryBreakDuck, key: SMX_StanceBreak]
  SMX_StanceBreak    <- stance-break shatter

The combat one-shot family

Impacts, swings, the parry and the poise beats are all the same kind of sound: a short point-source hit that fires often, must not machine-gun, and must sit at a consistent level against its neighbours. They are therefore presets of one MetaSound, MSS_Combat_OneShot (Content/Audio/Combat/), rather than a graph each.

The template owns the behaviour; a preset owns only its content:

Template input Default Purpose
Waves (empty) The variation set. A preset must supply it
Pitch.Min / Pitch.Max 0.95 / 1.05 Random playback-rate range per hit
Volume.Min / Volume.Max −1 / +1 dB Random level range per hit
Gain 0.65 Linear trim. The one knob for balancing a preset against the rest. Imported deliveries are set to 1.0 (see Loudness)

The wave is picked at random with no immediate repeats, and that pick history is shared across plays. A one-shot is a fresh graph instance every time it fires, so without shared state "no repeats" would only hold inside a single play and the same take could land twice in a row.

Routing is the other half of belonging to the family. Each preset carries SCL_SFXCombat, SCC_SFXCombat and SAT_Combat_OneShot itself: a MetaSound preset inherits its parent's graph, not its parent's sound class, concurrency or attenuation. SAT_Combat_OneShot is the single place the family's distance behaviour lives, so changing how far a hit carries is one edit rather than eleven. The break sound is the deliberate exception on class: it sits on SCL_SFXCombatBreak with a raised priority, for the reason given in Ducking a beat out of its own bus.

Layered hits. The designer builds an impact or block from layers that play together, with a random take from each layer (some layers open with deliberate silence, which places them in time). Those are presets of a second template, MSS_Combat_Layered: inputs Layer1..Layer8 (wave arrays), the same Pitch.* / Volume.* / Gain, one take per layer with each layer's own shared no-repeat history, one shared pitch and volume roll so the layers stay locked, all summed into one mono voice of the combat cap. An empty layer finishes as soon as it starts, so the sound ends with its longest layer. The six MSS_Impact_* presets and MSS_Block_Weapon_{Sword,Shield_Metal} are layered. StartTime (seconds) skips the same amount of every layer: an impact fires at contact, so a set whose takes all open on shared silence would crack that late. Every impact is at 0 since the designer re-exported with the hit at 0 ms (2026-10-19). Layer<N>Gain (linear, 1 = as delivered) trims one layer against the designer's balance; all are at 1, as delivered.

Building the templates and importing a variation set are scripted (Tools/Python/combat_oneshot_sfx.py); the recipe is in Audio Authoring.

Where the listener is

The listener sits at the character, not the camera 8 m above it, on the camera boom (absolute rotation) with the boom's pitch cancelled: level, facing the camera's yaw, so screen-left is audio-left whichever way the character faces (AEternalPlayer::SetAudioListenerToCharacter). An override rotation is added to the attached component's rotation; until 2026-10-17 it hung off the character root and turned with the character, panning sounds in front of it hard to one side.

SAT_Combat_OneShot keeps nearby hits from jumping speakers: fully centred within 2 m of the listener, blending to a full pan by 10 m (NonSpatializedRadiusEnd 200 / Start 1000). A mono source past the blend pans fully, so a hit 3 m to the side used to play from one speaker only.

Surface taxonomy

The 11 physical surfaces in DefaultEngine.ini (+PhysicalSurfaces) are the domain. Two consumers exist:

  • Combat impacts — [/Script/ProjectEternal.CombatEffectsSettings] PhysicalSurfaceToTag → Combat.Surface.* (semantic set: Flesh, Metal, Stone, Wood, Dirt, Water, Sand, Default). Impacts don't need gravel-vs-rocks resolution, so several physical surfaces map to one combat tag (Gravel/Rocks→Stone, Grass/Dirt/Mud→Dirt, Water/Puddle→Water). Eternal.Audio.Audit enforces full coverage.
  • Footstep foley — ALS footstep notifies key directly off EPhysicalSurface in AlsFootstepEffectsSettings (no tag map). Coverage there is per-surface content, not config — authored in Phase 1. The surface is the trace's physical material, then the painted vertex colour, then a decal laid over the spot: a puddle decal's material carries 10_Puddle_Physic_Mat, so a step into it plays the Puddle row (the water walk foley today).

Where a hit reads its surface

An impact should sound like what was struck, whatever struck it. The physical material a hit reports does not give you that: a weapon trace returns the body it happened to cross (on a character, the capsule), and a projectile's overlap sweep returns no material at all. Read naively, the same enemy answered a sword with one surface and an arrow with another.

So every combat hit resolves its material through one function, UCombatEffectsSettings::ResolveSurfaceMaterial(HitResult), before the surface tag is looked up:

  1. The victim is a character → the physical material of its mesh. The capsule's is ignored.
  2. Otherwise the material the hit reported.
  3. Otherwise the material of the component that was hit.

Melee (UCombatComponent::OnActorHit) and projectiles (AProjectileBase) both call it, so the two delivery paths cannot disagree.

A blocked hit never reaches the body, so it plays the guard instead. On a successful block (not a guard break) the defender's UCombatComponent::NoteBlockedHit records Combat.Surface.Block.Shield (a shield, or any enemy guard stance) or Combat.Surface.Block.Weapon for that hit; the attacker's impact cue, fired after the damage resolves in the same call, carries it in AggregatedTargetTags (projectiles pass it through Multicast_OnHit), and GameplayCueNotify_CombatImpact uses it in place of the material. The two surfaces resolve through SurfaceTypeDefaults, so one row per guard covers every weapon type. The consequence for content is one rule: a character declares what it is made of on its mesh component's Phys Material Override. A character with no override there resolves to the engine default material, i.e. Combat.Surface.Default and the fallback thud.

Replication discipline

Audio is client-side cosmetic — a dedicated server plays nothing, ever, and that is by design.

  • Montage notifies ride montage replication (no RPCs).
  • Ability/status audio rides GameplayCues (the sanctioned multiplayer path).
  • UI/screen audio is owner-local.
  • No bespoke audio RPCs. /mp-review applies to any code that touches this rule.

Enforcement

Eternal.Audio.Audit (commandlet, Source/ProjectEternalEditor/.../Audio/AudioAuditCommandlet.cpp):

UnrealEditor-Cmd.exe <project.uproject> -run=AudioAudit -unattended -nopause -nullrhi [-strict]

Reports combat-surface coverage, D7 naming compliance, SoundClass routing, bus voice caps, class submixes, mix-graph registration gaps, combat-effect rows with no audio layer (opt-out: bExpectedSilent for intentionally-silent rows), and montage windup coverage (a ComboHitWindow montage must carry an audio notify near the first window). Report file: Saved/AudioAudit/AudioAudit_<ts>.md. Non-strict always exits 0; -strict fails on structural errors. Core logic is UObject-free in AudioAuditCore with a spec (ProjectEternal.Editor.AudioAudit). The ability validator additionally warns on projectile abilities with no travel audio (the windup/travel/impact layer model, 02_Audio_Authoring.md).

The submix check. Every sound class on a registered bus (the bus class and its children) must set DefaultSubmix to that bus's submix; a miss is an error, since every sound on the class would play on Master.

The voice-cap check. A sound whose class sits on a registered bus (directly or through a child class) must name that bus's concurrency asset, read from UEternalAudioSettings. Two exemptions: a sound with its own inline concurrency override, and a sound that only other sounds reference (a wave inside a cue, a preset's parent), since it never reaches the mixer as a voice of its own. Attenuation is deliberately not checked: whether a sound should be spatial is a per-sound decision the bus graph does not record.