Skip to main content

Sound-Tracing SDK for FMOD

Sound-Tracing SDK for FMOD (binary name SoundTracingFmod) is a DSP plug-in for using the Sound-Tracing SDK in FMOD Studio / FMOD Engine. It consists of two DSPs — Sound-tracing Source, inserted on events in the authoring tool, and Sound-tracing Listener, placed once on the master bus — plus a C API through which the game engine uploads geometry.

ItemValue
FMODStudio / Engine 2.03 ~ 2.04 (plug-in SDK 110 build = 2.00 ~ 2.04, 204 build = 2.04+)
PlatformsWindows x64 · macOS · Linux · Android · iOS (static) · Web (static, FMOD HTML5 pthreads)
Product downloadContact contact@exarion.ai

Structure​

SoundTracingFmod structure

  • The engine is an "N source inputs → one listener mix output" design, so Sources push audio and output silence, and the Listener on the bus renders everything at once.
  • The plug-in dynamically binds SoundTracingRealtime from its own folder, and the game side obtains the st_rt_* functions of the same module through the exported SoundTracingFmod_GetRealtimeProc — there is one engine instance.
  • The renderer is elected every block as "the Listener whose process is currently running". The dummy preview instances Studio creates do not hijack the live Listener; if the renderer stalls for 250 ms another Listener takes over, and if there is none the Sources fall back to dry.
  • Engine sources are created only for Sources that actually received audio (protecting the 64 concurrent streams). The engine source of a finished voice stays in a warm pool for the next voice to reuse — One-shots and the warm source pool.
  • The output limiter is turned off: inside FMOD the master bus handles limiting.
  • Equal-loudness compensation is turned off too: tone and level belong to the FMOD mix.
  • Listener orientation: the FMOD listener's forward and up are passed as a quaternion, so head tilt (roll) is reflected.

Installation​

FMOD Studio (authoring tool)​

Plug-in install location

  1. Match the version: Studio 2.03.x → SDK 110 build, Studio 2.04.x → SDK 204 build. The 204 plug-in does not load in Studio 2.03.
  2. Copy the contents of the distribution plugins/ folder (SoundTracingFmod.dll · SoundTracingFmod.plugin.js · SoundTracingRealtime.dll · Resources/HRTF/) into the Studio project's Plugins/ (better for version control) or the user plug-in folder, then restart Studio.
    • Windows: %localappdata%/FMOD Studio/Plugins
    • macOS: ~/Library/Preferences/FMOD Studio/Plugins/SoundTracing
  3. No FMOD symbols found in dynamic library '.../SoundTracingRealtime.dll' in the Studio log is harmless (Studio opens every DLL in the folder as a plug-in candidate; the engine DLL is loaded by SoundTracingFmod itself).

If the HRTF resource is missing, the engine falls back to the embedded MIT KEMAR.

Game runtime​

PlatformLinkingArtifacts
win / mac / linuxDynamicSoundTracingFmod.{dll,dylib,so} + SoundTracingRealtime.* next to it + Resources/HRTF
androidDynamic<abi>/plugins/libSoundTracingFmod.so + libSoundTracingRealtime.so (app library folder)
iosStaticSoundTracingFmod.xcframework (includes the engine objects)
webStaticlibSoundTracingFmod.a (includes the engine) — link with the FMOD HTML5 pthreads build + -pthread

On dynamic platforms, once FMOD loads the plug-in, the plug-in finds the engine next to itself. On static platforms (iOS/Web), register directly before loading banks.

studioSystem->registerPlugin(FMOD_SoundTracing_Source_GetDSPDescription());
studioSystem->registerPlugin(FMOD_SoundTracing_Listener_GetDSPDescription());

Using it in FMOD Studio​

Sound-tracing Listener on the master bus

  1. Add Exarion › Sound-tracing Listener to the master bus (one per project. If two run at the same time, only one renders and the other passes through).
  2. On the master track of 3D events, remove or bypass the FMOD Spatializer and add Exarion › Sound-tracing Source (leaving it in causes double spatialization).
  3. There is no game scene inside Studio, so when running in the authoring tool an 8 × 3 × 10 m audition room is laid down automatically (SOUNDTRACINGFMOD_AUDITION_ROOM="W,H,D" changes the size, "0" disables it). Move the source outside the room in the preview to hear wall occlusion.

Sound-tracing Source on a 3D event

DSP parameters​

Sound-tracing Source deck UI

DSPParameterMeaning
Sound-tracing SourceGain / Direct / Reflections / Diffraction / Reverb Send (dB)Input level, per-path volume (Sound-Tracing SDK path volume)
Directivity (0 ~ 1)0 omnidirectional ~ 1 cardioid (relative to the event forward)
StationaryHint that the emitter never moves (applied at creation)
BypassDry pass-through without going through the Sound-Tracing SDK
3D Attributes / Overall Gain / Atten RangeFMOD special data parameters (automatic)
Sound-tracing ListenerWet Level / Dry Level (dB)Level of the Sound-Tracing SDK render / of the other audio on the bus
HRTFOn = binaural (headphones), off = stereo panning
Both (EQ block)EQ / EQ Preamp (dB)4-band EQ on/off and preamp — EQ
EQn Type / EQn Freq (Hz) / EQn Gain (dB) / EQn Q (n = 1 ~ 4)Per-band filter type, frequency, gain, Q

Bypassing the Listener returns the Sources to dry pass-through (for A/B comparison). DSP names and parameter names are stored as identifiers in the banks, so they are not changed after release.

One-shots and the warm source pool​

For short sounds that get a new voice on every event, the plug-in reuses engine sources across voices. No changes to FMOD Studio events or the DSP setup are needed.

  • The engine fades in every path of a new source over 150 ms and waits for its first IR, so creating a new engine source per voice makes short sounds quiet and late.
  • The plug-in plays out up to 300 ms of the PCM a finished voice already pushed, then stops the source (reverb keeps ringing) and keeps that source warm — up to 16 sources, for 2 seconds.
  • The next voice attaches to the nearest warm source. Within 0.25 m it starts immediately; farther away, playback starts about 25 ms later. Warm sources not reused within 2 seconds are released.

Measured with the core test (the same runtime without FMOD).

ItemNew source per voiceWarm pool
Engine sources created for 16 voices at one spot (120 ms apart)164
Level, voices at one spotBaseline+15.7 dB (full level)
Level, moving voicesBaseline+19.3 dB (full level)
Voice start → first sound92 ms69 ms
Audible length of a 350 ms voice275 ms350 ms

With the environment variable SOUNDTRACINGFMOD_WARM_SOURCES=0, a new source is created per voice as before (for comparison).

Game-side C API​

include/SoundTracingFmod/SoundTracingFmod.h — exported by the plug-in library. Bind from the module FMOD loaded. Make every call from the game thread, and make Sound-Tracing SDK [control] calls only inside SoundTracingFmod_InvokeOnControlThread.

SoundTracingFmod_Config cfg; SoundTracingFmod_InitConfig(&cfg);
cfg.renderMode = SOUNDTRACINGFMOD_RENDER_BUFFERED; // default. IN_CALLBACK = render inside the FMOD mixer callback
cfg.sceneRatio = 0.f; // 0 = 1.0 (FMOD UE/Unity integrations use metres)
cfg.maxSources = 0; // 0 = engine platform default (desktop 128, Android/iOS 48, web 32)
SoundTracingFmod_Configure(&cfg); // before the runtime starts (before the first Sound-Tracing SDK DSP is created)

SoundTracingFmod_Status st = { sizeof st };
SoundTracingFmod_GetStatus(SOUNDTRACINGFMOD_SYSTEM_LATEST, &st); // state READY, boundSources, latency, defaultMaterialId

typedef STMeshId (*mesh_create_fn)(STRT_Context*, const STMesh*, STMaterialId, const int32_t*);
mesh_create_fn meshCreate = (mesh_create_fn)SoundTracingFmod_GetRealtimeProc("st_rt_mesh_create");

SoundTracingFmod_InvokeOnControlThread(SOUNDTRACINGFMOD_SYSTEM_LATEST,
[](STRT_Context* ctx, void* user) {
/* st_rt_mesh_create / st_rt_object_create_q / st_rt_build ... */
}, user, /*wait=*/1);
  • System index = FMOD_DSP_STATE::systemobject (the first FMOD::System created in the process is 0). Editor integrations create multiple Systems, so SOUNDTRACINGFMOD_SYSTEM_LATEST(-1) = the most recent runtime.
  • FMOD and the Sound-Tracing SDK share the same coordinate system (left-handed, +Y up, +Z forward). The (UE.Y, UE.Z, UE.X)/100 conversion of the FMOD UE integration is identical to the conversion in the SoundTracing UE plugin.
  • The default material library is registered in the plug-in context first. Add the preset index to defaultMaterialId.
  • Source cap: SoundTracingFmod_Config.maxSources is the engine source count cap (0 = platform default). Beyond it the engine rejects source creation and that voice plays dry. The field is appended to the end of the struct, so hosts that pass the older, shorter struct still work — Source memory budget.

Turning sound tracing on and off​

SoundTracingFmod_SetSoundTracingEnabled(SOUNDTRACINGFMOD_SYSTEM_LATEST, 0); // off. 1 = on (default)

A game-side A/B switch. It applies to one runtime (systemIndex < 0 = the most recent) and takes effect asynchronously on the control thread.

  • Turning it off engages the Sound-Tracing SDK renderer bypass (st_rt_render_set_sound_tracing_enabled), empties the warm source pool without refilling it, and the plug-in stops waking the propagation lanes.
  • The propagation lanes do not stop completely. The engine has no propagation pause, so while sources remain the lanes keep running at their own cadence.
  • Turning it on reapplies the plug-in's render options.
  • Returns 1 when queued, 0 when there is no runtime. Runtimes started later start in the on state.
  • It is an optional export; the game API version stays 1. Look up the export and skip it if it is missing.

UE SoundTracing's SetSoundTracingEnabled calls this function in FMOD mode — Unreal Engine SDK.

UE and Unity integration​

  • Unreal Engine: put the distribution's Unreal/SoundTracing (FMOD edition) into the project's Plugins/ and build; the build puts the plug-in, engine, and HRTF into Plugins/FMODStudio/Binaries/<Plat>/ and adds +PluginFiles=SoundTracingFmod to DefaultEngine.ini. The SoundTracing plugin builds in FMOD mode and only uploads geometry — Unreal Engine SDK.
  • Unity: drag and drop the FMOD edition package (SoundTracing-Unity-FMOD-release.unitypackage); when the editor loads, SoundTrace copies the DLL/bundle into the FMOD plug-in folder and registers it under Dynamic Plugins — Unity SDK.

Importing the FMOD edition package

Verification results (2026-10-01 · FMOD 2.04.00)​

TestContentResult
core_smokeRuntime only, without FMOD: 48 kHz/1024 blocks, noise at 80° right, room upload → reverb, renderer election/takeover rulesPASS — ILD +14.6 dB
fmod_host_smokeFMOD Core host loadPlugin → Source/Listener → WAV, room via the game APIPASS
studio_projectFMOD Studio (fmodstudiocl) recognizes both DSPs, loads the parameters, builds the bankPASS
studio_smoke3D playback of that bank in the Studio API runtime, moving right → leftPASS — ILD +14.97 → −14.80 dB

Render latency (BUFFERED, 48 kHz): about 1,790 frames (≈37 ms). Real-time audition in the FMOD Studio GUI was verified manually on 2026-10-15.

Known limitations​

  • One listener, 64 concurrent streams (excess goes dry), stereo output only (speaker layouts not exposed).
  • The EQ is fixed at 4 bands per DSP (UE, Unity, and Web have up to 16 bands).
  • The engine source count does not exceed the platform cap (maxSources). Excess voices are dry.
  • Event effects/sends after the Source receive silence (the Sound-Tracing SDK mix comes out of the Listener bus).
  • Overall Gain (audibility for virtualization) is a distance-based estimate.
  • FMOD Studio may create multiple Systems, so each System gets its own Sound-Tracing SDK context.
  • The SDK 110 distribution build must be rebuilt against the official FMOD 2.03 SDK (the FMOD EULA forbids redistributing the SDK).

Logging / environment variables​

VariableMeaning
SOUNDTRACINGFMOD_LOG_FILELog file path
SOUNDTRACINGFMOD_LOG_STDERRLog to stderr
SOUNDTRACINGFMOD_RUNTIME_LIBRARYForce the SoundTracingRealtime path
SOUNDTRACINGFMOD_AUDITION_ROOM"W,H,D" audition room (m), "0" disables it
SOUNDTRACINGFMOD_WARM_SOURCES"0" disables the warm source pool and creates a new engine source per voice (for comparison)

On Windows, output always also goes to OutputDebugString. The control thread logs Sound-tracing Listener rendering / no Sound-tracing Listener rendering whenever the renderer state changes.

EQ​

The Sound-Tracing SDK's parametric EQ is applied in two places.

  • Source EQ — on the source signal itself, before the engine's band split. Direct sound, reflections, diffraction, and reverb of that source all get the same tone.
  • Output EQ — on the whole Sound-Tracing SDK mix at the end of the render (before the master gain).

There are 6 filter types — Peaking · Low Shelf · High Shelf · High Cut · Low Cut · Notch (cuts are fixed at 12 dB/oct); the ranges are frequency 20 ~ 20,000 Hz, gain ±24 dB (Peaking and shelves only), Q 0.1 ~ 30 (shelves up to 3), and preamp −48 ~ +12 dB. It is off by default, and while off the engine is not called, so the output is identical to having no EQ. Only changed values are sent, and the engine crossfades over 20 ms.

Both DSPs have the same 4-band EQ parameter block.

DSPWhere it applies
Sound-tracing SourceSource EQ — the event signal going into the engine
Sound-tracing ListenerOutput EQ — the rendered mix, before Wet Level
  • EQ switches it on/off, and EQ Preamp is the gain ahead of the bands (−48 ~ +12 dB; use a negative value to leave headroom for boosts).
  • EQn Type (n = 1 ~ 4) is an integer parameter of Off · Peaking · Low Shelf · High Shelf · High Cut · Low Cut · Notch (0 = Off); EQn Freq (Hz) · EQn Gain (dB) · EQn Q are float parameters.
  • Four bands are enough for a low cut, low shelf, high shelf, and high cut at once.
  • With several Listeners, the EQ of the instance elected as the renderer is used. Engine sources reused from the warm pool clear the previous voice's EQ, or replace it with the new one, before starting.

Next​