Audio and radio#
All of the game's sound goes through FMOD Ex: event projects (.fev) name cues, and 984 sound banks (.fsb) under media/audio hold the samples. One audio manager object owns the FMOD system, and simulation code reaches it through CAudioManagerDeferred commands (The executable). FMOD mixes in 5.1 on its own mixer thread and hands float blocks to XAudio2, which passes them to the console's audio output. XMA is the compressed format of 975 of the 984 banks, decoded on the way in through the console's XMA hardware.
The radio is simpler than it looks. All its music is one 680 MB bank of plain MP3 samples, Radio_Music.fsb, and an XML file lists the stations and which samples each may play. That is why custom stations are possible as data mods (Modding), while adding a fourth selectable station is not: the station names and their icons are in the executable.
An FSB4 bank's header lists its samples, and each radio sample carries three named sync points. This reads them without decoding any audio:
import struct
def fsb4_samples(path):
"""(name, length in samples, frequency, sync points) for each sample of an FSB4 bank."""
with open(path, "rb") as bank:
magic, count, header_size = struct.unpack("<4sII", bank.read(48)[:12])
assert magic == b"FSB4"
headers = bank.read(header_size) # sample headers; the audio data follows
offset = 0
for _ in range(count):
size = struct.unpack_from("<H", headers, offset)[0]
name = headers[offset + 2:offset + 32].split(b"\0")[0].decode("ascii")
length, _, _, _, _, frequency = struct.unpack_from("<IIIIIi", headers, offset + 32)
sync = []
if headers[offset + 80:offset + 84] == b"SYNC": # named markers, 260 bytes each
for k in range(struct.unpack_from("<I", headers, offset + 84)[0]):
entry = offset + 88 + 260 * k
label = headers[entry + 4:entry + 260].split(b"\0")[0].decode("ascii")
sync.append((label, struct.unpack_from("<I", headers, entry)[0]))
yield name, length, frequency, sync
offset += size
On Radio_Music.fsb it yields 127 samples, each with SongStart, EventStart and IdentStart markers. Unlike the game's archives, FSB4 headers are little-endian. tools/build-fh1-radio.py --check-bank parses the whole bank and rebuilds its header byte for byte.
Audio engine#
Most banks are XMA, which FMOD's XMA codec decodes through the console's XMA registers by way of nine small XDK helper routines. In the recompiled game those register writes never fault: the generator recognises the register window when the address is built and emits each store as a direct call into the runtime's decoder, about 115 calls a frame. The decoder's register handler used to decode each kicked context on the FMOD mixer thread itself; the SDK cvar xma_decode_kicks_inline=false leaves that to the decoder thread, which measured 15 % fewer mixer-thread cycles on the desktop and 21 % fewer instructions on the Odin with no stall or queue change (research record, NL-4.1). A 40 s capture of the Odin race in each mode, with every frame's submit time, found no dropout in either (no gap between frames over 17 ms, no sudden level drop, no XMA stall), but the decoder thread takes back most of the saving: about 0.1 ms a frame net. Played on the Odin in worker mode it sounded right, so worker decoding has been the default since 2026-10-13 (near-native record, NL-4.1).
| Address | Finding | Confidence |
|---|---|---|
0x83439490sub_82BADF40v40x8352EA5C | FMOD audio manager and cues The global at 0x83439490 is the audio manager (IAudioManager) over FMOD Ex events. Its vtable +280 loads an FMOD event project (.fev), +300 creates a named cue (group path, cue name) and +304 a programmer-sound cue that streams from an FSB. A cue's vtable +72 plays, +76 stops, +12 releases, and +84 and +88 report playing and channels; +36 is a legacy play (sub_82BADF40, with a report-missing flag and a subsample index).Established by Loading the Rally co-driver bank and playing cues from the title's audio update through these methods; non-silent PCM captures. | Confirmed |
sub_82BB5918v4sub_82C74230 | CAudioEngine::Update CAudioEngine::Update (0x82BB5918) is the audio update, called through a function slot on the game audio thread (CAudioThread) before the ordinary FMOD update. It owns cue operations: cues are safe to start, stop and release from here. In a desktop race it ran 3,253 times (about 28 a second), through the indirect calls at 0x824B8114 (2,939) and 0x824B8200 (314).Established by Replacement hook used by the base-disc Rally adapter to schedule pace notes; slot 0 of the | ProbableUpdateRallyPace is the name of Pinyon's replacement hook for it (installed with SetFunction in the runtime hooks), which calls the original; the guest function is CAudioEngine::Update. |
82BAF5C8sub_82BAD518sub_82BAC498sub_82450160sub_823F4FE8v482C6DD70sub_82C6BD58sub_82C6ACF0sub_8247F818sub_82425038 | CAudioThread command lists CAudioThread does not call the game's audio objects itself. The game thread posts deferred virtual calls into a list (sub_823F4FE8 builds each entry: a marshalling thunk, the object and a copy of the arguments, the frame time as a float at +4 of the argument block), and once per rendered frame the audio thread, through sub_82BAD518 and sub_82BAC498, waits up to 40 ms on its event at +444 and drains the list at +24 with the executor sub_82450160. In catch-up mode the executor skips entries whose byte at +16 is 0. On the Steam Deck LCD 98 % of the thread's time is inside four thunks: sub_82BB9CD8 (v4 sub_82C78718) calls vtable +88, the car audio model update sub_82BC8410 (v4 sub_82C86D38), once per car with the frame time and a block of car state (58 % on the Deck, 34 % on the Odin); sub_8249BE98 (v4 sub_82508890) calls +44, the audio engine update sub_824B7EE0 (v4 sub_825253D0), with the frame time and a flag byte at +8 (19 %); sub_8249BFC8 (v4 sub_825089C0) calls +52, sub_824A5F10 (v4 sub_82512C38), with no time (19 % on the Deck, 45 % on the Odin); sub_8249C130 (v4 sub_82508B40) calls +64, sub_824A2918 (v4 sub_8250F3F0) (5 %). The thunks are generic: other objects' one-off calls go through the same thunk, so a host gate must check the object's vtable slot before skipping anything. Running these four on one frame in two at 60 fps, with the skipped frame's time added to the next call (NR-1, pinyon_shift_audio_update_interval), took 0.67 ± 0.09 ms a frame off the audio thread on the Deck and 0.44-0.63 ms on the Odin; the two timed ones alone 0.55 and 0.22-0.32 ms. Loudness and the 30 Hz component of the loudness envelope of route audio captures did not change beyond run-to-run spread.Established by In-run A/B on a race route (four 240-frame conditions cycled seven times; Deck LCD, Odin 2 v4), per-thread CPU from | ProbableThe roles of the +52 and +64 updates are not known. |
sub_82FA84E8sub_830072D0 | FMOD channel settings race Cue cleanup sub_82FA84E8 clears a channel's shared-settings pointer, and the channel-settings update sub_830072D0 reads that pointer repeatedly. Cleanup on a thread other than the audio thread can crash the update with a null read at 0x38, so cue work belongs in CAudioEngine::Update.Established by Crash report and read-only thread trace; moving the cue work into | ProbableThe crash was intermittent; the thread mismatch was observed. |
sub_830A42E0sub_830A40F8sub_830A4868sub_830A4190sub_830A3EF8sub_830A3E28sub_830B54F0sub_830B5D18sub_830B5490 | XMA register writers Every access to the XMA register window (0x7FEAxxxx) is in nine small XDK routines, the XMA helpers that FMOD's XMA codec calls (see "FMOD XMA codec"); the title's own code never touches the hardware. Four write a register whose address and value arrive in r4 and r5 (sub_830A42E0, sub_830A40F8, sub_830A3EF8) or in r7/r8 and r10/r30 (sub_830A4868, two stores), two read one (sub_830A4190 reads a word and a halfword at +80 of the register block, sub_830A3E28 one word), and the three sub_830B5xxx routines are off the race path. Over one 12,993-frame race the writers ran 249,317, 249,238, 249,238 and 956 times and the reader 249,238 times: about 1.0 million register writes and 0.5 million reads, 77 and 38 a frame. In the recompiled build the store is not a trap: the generator recognised the window from the address construction and emits the store as a direct call into the decoder's register handler, so what the FMOD mixer thread pays for is the handler's work, which decodes the kicked context on the calling thread, not the dispatch.Established by The | ConfirmedAn earlier version called these XAudio2 routines on the audio thread's output path; they belong to the XMA input codec. |
sub_82A63F40sub_82A63FE8sub_823F2960 | custom soundtrack and the radio mute FH1 supports the console's custom soundtrack only minimally: it sends XMPSetPlaybackController (0x0007001A, from sub_82A63F40) and XMPGetPlaybackController (0x0007001B, from sub_82A63FE8) and never drives the player. It polls the controller every frame and mutes its own radio and music while the system player owns it (title music fell silent within a second and came back); effects and ambience keep playing. The 0x0A000003 notification and voice category 1's volume (XAudioGetVoiceCategoryVolume, read in a loop and cached by sub_823F2960 at object+536) change nothing audible.Established by Static reading, then a run-time probe that took the playback controller and measured the title music's RMS. | Confirmed |
AudioEngineConfig.xmlAudioMixerSnapshots.xmlaudio/cars/CarModelTuning.zipv4same | audio mix Per-category levels (player engine, opponents, tyres, wind, music, ambience), a normal and a TV compressor set, per-state ducking, and the map from car to engine sound bank. Established by Archive listing. | Probable |
AudioMixerSnapshots.xml snapshot groupsv4same | mixer snapshots multiply Each snapshot (FreeRoam, Race, Paused, InTunnel, MainTown and others) names a group, and its children set each category's destvolume. Snapshots of different groups (Gameplay, Location, Speed, Radio, VO and others) are active together and their levels multiply: halving the engine's level in every snapshot made it near silent, while halving it only in the 17 Gameplay snapshots measured 0.042 RMS against 0.057 (engine alone; 0.025 at a quarter). The host's F6 audio mixer scales the Gameplay group only.Established by Generated file overlay; native PCM capture ( | Probable |
AudioEngineConfig.xml game* levelsv4same | AudioEngineConfig levels are not the free-roam mix gamePlayerEngine, gameOpponentEngine, gameTire, gameCarWind, gameAmbient, gameAmbientDynamic and gameMusic all at 0 measured the same as the defaults (0.065 RMS), though the title read the overridden file. They may apply elsewhere (split screen, menus); that was not tested.Established by Generated file overlay; native PCM capture. | Probable Negative |
sub_830A4930sub_830A3E40sub_830A4730sub_830A4788sub_830A4038sub_830A4408sub_830A4498sub_830A4098sub_830A4648sub_830A46F8v4sub_83165A20sub_83164F30sub_83165820sub_83165878sub_83165128sub_831654F8sub_83165588sub_83165188sub_83165738sub_831657E8 | XDK XMA playback layer FMOD's XMA codec decodes through a statically linked XDK playback layer over one XMA context per playback: create sub_830A4930 (user-supplied memory, sized by sub_830A3E40; per stream a rate, 1,024-sample output, at most two channels and four subframes), destroy sub_830A4730, submit a block sub_830A4788 (translates it to a physical address), wants-input sub_830A4038, frames available sub_830A4408, take frames sub_830A4498, done sub_830A4098, flush sub_830A4648 and set loop sub_830A46F8. Flush only resets the playback's stream bookkeeping and zeroes its output; it does not clear the context, so the decoder's history survives a reuse, which shifts post-seek output by one frame (512 samples) against a fresh context. The register writers below these (see "XMA register writers") do the kick and the context programming.Established by Call sequences and arguments in the generated code from the codec bodies; call counts from the probe build (each of the wants-input and available calls matches a codec read one for one); v4 by exact and context mapping. | ProbableThe roles are named from the call pattern and the arguments; the history effect of flush follows from the SDK decoder's handling of a context that is not cleared. |
AudioMixerSnapshots.xml Reverb groupGlobalDSPConfig.xmlmedia/tracks/colorado/colorado_reverb.xmlv4same | no reverb switch in the audio XML; muting the track reverb saves nothing measurable The two Reverb-group snapshots (InTunnel, NotInTunnel) only set category levels inside and outside tunnels, and GlobalDSPConfig.xml holds bypass, gain and filter settings for the cockpit, rewind and countdown effects; only the backfire's reverb send has an override (backfireReverbWetSendOverride). The world reverb's parameters are per track, in the loose colorado_reverb.xml: 24 templates (open road, overpass, tunnels, canyons, car park, warehouse) with decay, reflection and reverb levels and near and far wet and dry mixes, chosen by the NotInTunnel/InTunnel snapshot. A mod setting every template's reverb, reflection and room levels to -10000 mB and its wet mixes to 0 did not lower the audio threads' CPU: 934 and 1,108 Mcycles a second over a free-roam drive against 875 and 1,255 stock, inside the spread of identical runs. The reverb is computed whatever its levels, so turning it off needs a hook in the guest audio code, for at most its 12 % of the audio thread.Established by Reading the game's audio XML element and attribute names; two A/B pairs of a free-roam drive route from a pinned seed with a loose-file mod, sampling every guest thread's cycles ( | Probable Negative |
sub_82BB5918v4sub_82C74230 | UI sounds by name media/audio/UI/ui4audio.xml maps each UI sound name to a group and cue in the UIInGame event project. The achievement event (MiniAchieve) maps to the silent Blank cue, so the title plays nothing on an unlock; its HUD notifications use UIInGame/UI/HorizonHud cues such as HUD_General_Notification_Reward (sponsor and flyer rewards). With UIInGame already loaded by the title, the audio manager's named-cue factory (vtable +300) creates that cue from inside CAudioEngine::Update, and it plays.Established by Reading the XML; Pinyon's unlock sound hook on a render route ( | ProbableThe cue is created and play is called; that it is audible has not been checked with an audio capture. |
Mixer and output#
FMOD mixes on its own thread, one 256-sample block every 5.33 ms, and it mixes in 5.1: the title never changes FMOD's default speaker mode. Every sample in the banks is mono or stereo, so the six channels come only from the mix buses, and the effect units spend nearly all their time in their six-channel loops before the host folds the result to stereo. On Android and Linux (the Steam Deck) Pinyon Shift now sets FMOD to stereo before it starts (pinyon_shift_fmod_stereo), which cut the mixer's instructions by 45 % and its CPU by about 1 ms a frame on the Odin; Windows and macOS keep the 5.1 mix for surround speakers. Each block takes this path (threads on the left, CPU a frame on the Odin at 60 fps from the research record):
CAudioThread, once a frame (2.39 ms*) game sound logic, FMOD Event System
FMOD mixer thread (4.46 ms) XMA or MPEG codec > resampler > 5.1 DSP graph > float source voice
XAudio2 pass thread (0.59 ms) source voice > six-channel master
host Audio Worker (0.32 ms) render-driver callback > XAudioSubmitRenderDriverFrame
host SDL output 1,536 floats a block, folded to stereo on Android
* Before the audio update gate: at 60 fps the game's audio updates now run at the console's 30 Hz, which takes 0.44-0.63 ms off this thread on the Odin (Runtime).
| Address | Finding | Confidence |
|---|---|---|
0x82F44670-0x83016060 | FMOD Ex code range FMOD Ex is linked into the executable at about 0x82F44670-0x83016060: 367 functions there reference FMOD Ex's own source-file and component-name strings, and every hot audio function sits in the range or is called from it. The image also names FMOD's threads (mixer, stream, file, geometry, nonblocking, XMic), its codecs (XMA, MPEG, Ogg Vorbis, FSB, WAV, raw, VAG and others) and its Xenon output. Code without strings reaches past both ends (the MPEG synthesis is at 0x8302xxxx), and a structural reading puts the library at about 0x82F34000-0x83031000. In a desktop race 1,220 of the 2,810 generated functions in the string range ran, 185 million calls, about 3 % of all guest calls.Established by A scan of the image for code that builds the addresses of FMOD's strings; call counts from the probe build (NL-2.3, 115 s race). | ConfirmedThe string range is confirmed; the structural bounds are probable. |
sub_82FBBB40sub_8300A508sub_82FB76C0sub_82FFFC38830C68B8sub_830C9D78sub_8246F268sub_830C9FA0 | audio output path The title's output is float 5.1 from FMOD, not XMA. FMOD's mixer thread mixes one 256-sample block every 5.33 ms (21,570 blocks in a 115 s race): sub_82FBBB40 calls the mix entry sub_8300A508, which runs the recursive DSP-graph execute sub_82FB76C0 (233 node visits a block). FMOD's Xenon output init sub_82FFFC38 (run once) creates the title's XAudio2 engine (sub_830A9968) and one float source voice; after that FMOD only polls the voice's state (sub_830B0A38, 66,517 calls, through its position query sub_82FFF930). The XAudio2 pass thread 830C68B8 mixes that voice into the six-channel master. The host Audio Worker runs the render-driver callback sub_830C9D78 > sub_8246F268 once per block (21,571 calls), which wakes the pass, waits for it and submits the frame with XAudioSubmitRenderDriverFrame; sub_830C9FA0 registers the driver client and reads the speaker configuration. The host copies 1,536 big-endian floats a block and folds six channels to stereo on Android. XMA is the compressed input of 975 of the 984 FSB banks (the other 9 are MPEG), decoded by FMOD's XMA codec. Other XAudio2 voices come from XHV2 voice chat, the movie glue sub_82E5DB08 and four creates not yet attributed. On the Odin at the 60 fps limit the four FMOD threads take 4.86 ms of CPU a frame, the XAudio2 pass 0.59 ms, the host Audio Worker 0.32 ms and the host XMA decoder thread 0.45 ms.Established by Call sequences, imports and indirect targets in the generated code; call counts from the probe build on | ConfirmedEarlier versions of this record, named "XMA audio output", said the audio thread wrote the output as 48 kHz six-channel XMA through the XMA registers. Those register writes are the XMA codec decoding compressed input (see "XMA register writers"). The Odin times are the base image's. |
sub_830A9860sub_830A86F8sub_830A96A8sub_830A8918sub_830B0570sub_830B08B0sub_830B0A38sub_830AF090sub_82AC0E20sub_82AC2E48sub_880583100x822B44500x822B45080x822B46300x822B46E0sub_830A8470sub_830A8688sub_830B06C8sub_830B6510sub_830B6500sub_830B5260sub_830AF230 | XAudio2 voices in a race Only FMOD's source voice is ever started or fed in single-player play. The engine methods, named by their vtable slots and how FMOD's output init sub_82FFFC38 uses them: XAudio2Create sub_830A9860 (reached through sub_830A9968), +32 CreateSourceVoice sub_830A86F8, +36 CreateSubmixVoice sub_830A96A8, +40 CreateMasteringVoice sub_830A8918; on a voice, +48 a volume set sub_830AF090, +72 destroy, +76 Start sub_830B0570, +84 SubmitSourceBuffer sub_830B08B0 and +100 GetState sub_830B0A38. A race makes 23 source voices: FMOD's one (site 0x82FFFF3C), 18 by the XHV2 voice code sub_82AC0E20 (site 0x82AC0F10) and 4 by the movie player (XMediaFacade_default.xex: sub_88058310 builds a 16-bit PCM format and calls +32, sub_880584A0 recreates its voice). XHV2 also makes 38 submix voices (sub_82AC2E48, two per call, and sub_82AC3F70). Start and SubmitSourceBuffer each run once in the whole race, both for FMOD's voice, which plays one looping buffer and is then only polled. The movie glue sub_82E5DB08 sets a voice's volume and creates none. So the guest XAudio2 pass has work beyond FMOD's voice only while a movie plays (NN-4.4). The engine's interface table is at 0x822B4450 and the source, submix and mastering voices' at 0x822B4508, 0x822B4630 and 0x822B46E0; the voice tables are identical through +80. Further slots: engine +20 Initialize sub_830A8470 (once, from XAudio2Create), +24 RegisterForCallbacks sub_830A8688 (never called, so no engine callback depends on the pass); voice +8 SetEffectChain thunk sub_830B5260 (36, XHV2), +64 SetOutputMatrix sub_830B6500 (73, XHV2), +72 DestroyVoice sub_830B6510 (4), +80 Stop sub_830B06C8 (never), source +88 FlushSourceBuffers sub_830AF230 (4). The four creates without a site are the movie player's: the engine pointer is handed out only four times (see "who holds the XAudio2 engine"), once to XHV2 and three times to CWMVMovie opens; the four destroys and flushes also have no default.xex site, which matches the facade tearing its voices down when it unloads after Press Start. None of the movie voices was started in the boot-to-race run. Pinyon Shift relies on this: while FMOD's voice is the only started one, it plays FMOD's mix ring on the host and skips the XAudio2 pass (NN-4.4). A shadow run of both paths matched sample for sample, and with the opening movies on, the movie voice starts and the guest path stays in use.Established by Vtable-slot calls in the generated code of FMOD's output init; call counts and indirect-site targets from the probe build (one boot-to-race run, 12,993 frames). The probe records indirect call sites only in | ProbableCounts confirmed; slot names follow the XDK interface order (probable); the movie attribution is probable (by the handle count and the destroy/flush pattern; sub_8912B220 in the speech module is ruled out because that module never received the engine). |
sub_82F86770sub_82F8D610sub_82FFFBD8sub_82FFFB38sub_82FFF930sub_82BAB058 | who holds the XAudio2 engine Only FMOD creates an XAudio2 engine; every other user borrows it through FMOD's getOutputHandle. The public call sub_82F86770 reaches the Xenon output plugin's handle getter sub_82FFFBD8 through sub_82F8D610 (4 calls in a boot-to-race run). The game calls it only from CAudioEngine slot +924 sub_82BAB058, for the XHV2 setup (sub_825E6CF0, once) and for each CWMVMovie open (sub_82E69950, three times: the two splash intros and PressStart.wmv). The same plugin's start sub_82FFFB38 makes the only Start call in the run, on FMOD's voice, and its position query sub_82FFF930 is the only caller of GetState (66,513 calls, about three per 5.33 ms block).Established by Call chains and indirect-site targets from the probe build (NL-2.3, boot to race); RTTI class slots for the callers; movie file opens from the Odin | ProbableCall counts and chains confirmed; the FMOD API names follow FMOD Ex's documented System::getOutputHandle and the plugin's call shape (probable). |
sub_825E6CF0sub_824CAB28sub_82AC1870sub_82AC17D0sub_82AC5210sub_82AC12E8sub_82463E10sub_82AC2E48sub_82AC0E20sub_82AC3F70 | XHV2 voice setup XHV2's XAudio2 voices are made once at boot from CAudioManager init (slot +4 sub_824CAB28, on the main thread): sub_825E6CF0 takes the engine from CAudioEngine, then sub_82AC1870 > sub_82AC17D0 > sub_82AC5210 sets up the voice engine; sub_82AC12E8 runs once per local user (4) and, through sub_82463E10 (18 calls), sub_82AC2E48 makes a submix pair, sets their effect chains and output matrix and calls sub_82AC0E20 for a source voice; sub_82AC3F70 adds the last two submixes and reads the ducker level. 18 source and 38 submix voices; offline none is started, but the 38 submixes are walked by every XAudio2 pass.Established by Call chains and counts from the probe build (NL-2.3); slot calls per site. | ProbableThe chain and counts are confirmed; 'once per local user' is from the count of four (guess). |
sub_823F27E8sub_823F2660sub_823F20B0sub_823F25A0sub_823F1BF0sub_8245F200sub_823F2960 | XAudio2 pass cost is the voice walk Per 5.33 ms block the XAudio2 pass sub_823F27E8 visits about 41 voices (sub_823F20B0 and sub_823F25A0, 884,289 calls each in a 21,569-block race) but runs its mixing loop sub_823F1BF0 only about three times (64,704), because in play only FMOD's source voice plays while XHV2's 38 submix voices are processed anyway. Its per-pass calls out of the library are empty leaves; it also polls the ducker (sub_8245F200, the XAudioGetDucker* and XAudioEnableDucker imports) and the music category volume (sub_823F2960), both constants in the SDK. A bypass of FMOD's voice alone would leave most of the pass's cost (NN-4.4).Established by Call counts from the probe build (NL-2.3); Odin cg2 self samples of thread | Probable |
sub_82F90A00sub_82F904E8sub_82F86298sub_82F86498sub_82F96658sub_82F8F8F0v4sub_83051B00sub_830515E8sub_83047350sub_83047550sub_83057758sub_830509F0 | speaker mode and the 5.1 mix FMOD mixes in 5.1 because the title keeps FMOD's defaults. The system constructor sub_82F90A00 stores the float output format (5) at +1184, speaker mode 5 (5.1) at +22064 and six output channels at +1200. The internal speaker-mode setter sub_82F904E8 (modes 1-6 give 1, 2, 4, 5, 6 and 8 channels; it refuses once the system is initialised) is called only from its public wrapper sub_82F86298, which never runs, startup included. The title's System::init wrapper sub_82F86498 calls FMOD's init sub_82F96658 once, which passes the +1200 count to the Xenon output init (sub_83000130 > sub_82FFFC38); that builds both the mastering voice and the source voice with it, so nothing else hard-codes six channels. The DTS Neural 7.1 branch sub_82F8F8F0 never runs. Every FSB sample is mono or stereo (16,068 and 3,197 in 984 banks), so the six-channel width comes only from the bus format: ParamEQ, echo sub_82FCD580 and the highpass/lowpass unit sub_82FCEAB0 each spend about 98 % of their Odin time in their six-channel loops, and the host then folds the mix to stereo on Android. A Stereo/PL2Stereo/5.1PCM name table in the data has no code references.Established by Constants and call arguments in the generated code (constructor, setter, init and output init); call counts from the probe build (NL-2.3, startup included); a channel-count census of the shipped FSB banks; Odin call-graph samples (cg2, 30 fps) placed on each unit's per-channel-count loops by their multiply counts; a string and reference scan of the image. | ProbableThe stored defaults and the call counts are confirmed; reading them as format, speaker mode and channel count follows FMOD Ex's documented enums and is probable. Forcing stereo before init (NN-4.2, on Android by default) confirms the reading: calling sub_82F86298 with mode 2 before sub_82F86498 returns 0, the title then builds a two-channel output, and the FMOD mixer thread drops from 17.6-18.1 to 9.3-10.6 M instructions a frame (about 3.8 to 2.8 ms of CPU) on the Odin race, in two restart pairs. |
sub_82FAE0B8sub_82FAB740sub_82FAC780sub_82FAC840sub_82FB76C0v4sub_8306F2E8sub_8306C970sub_8306D9B0sub_8306DA70sub_83078858 | FMOD matrix mix sub_82FAE0B8 mixes a voice's channels into its output through a level matrix: 1,437,684 calls in a race, 66.7 a mix block. It dispatches on the input channel count. On the Odin 46 % of its time is the six-in, six-out loop (36 multiply-adds a sample, against 4 for stereo) and 45 % the conversion of the half-precision level matrix to floats, which it redoes on every call. sub_82FAB740 is its level ramp (108,798 calls). Together they are 2.0 % of the Odin process.
Its contract, which an NN-4.3 native twin implemented exactly (since removed): the connection mix Established by Loop structure, arguments and field accesses in the generated code of the mix, the ramp, the two target tests and the caller; call counts from the probe build (NL-2.3); Odin call-graph samples (cg2, 30 fps) placed on its loops by their multiply counts. The v4 functions are exact matches except the two target tests (context matches with identical code bytes). | ConfirmedThe contract is read from the generated code and confirmed by experiment: with the twin's per-call verify (pinyon_shift_fmod_dsp_verify) on every call of an Odin race, 1,286,144 calls matched the original within 60 dB with no state difference (build S). The ramp steps, writes back and mixes only the levels the call uses (output channels by input channels), so a mono input with six-column rows leaves columns 1 to 5 alone until the ramp ends. The game thread's level setters write the current and step rows and the ramp count without a lock while the mixer runs: those bytes changed during calls with no ramp, where neither run writes them, and all the earlier mismatches went away once the verify repeated both runs to tell such writes apart (313 calls raced in build S). The twin gave no gain: the in-run A/B on the Odin race moved the FMOD mixer thread by -0.031 ± 0.071 ms a frame at about 125 calls a frame, so it was removed (site/pages/lessons.md). What the first-column target means in FMOD is not known. |
sub_82FB76C0sub_82FBE908sub_82FAE0B8v4sub_83078858sub_8307F9B8sub_8306F2E8sub_83075D18 | where FMOD's mixer thread goes in a v4 race On the Odin (v4, stereo output) FMOD's mixer thread (sub_83075D18) is 8.5 % of process cycles, about 2.4 ms of CPU a frame. By leaf: the DSP connection mix sub_83078858 (base sub_82FB76C0) 30 %, the room reverb's read callback sub_8307F9B8 (base sub_82FBE908) 18 %, sub_830C49D8 9 %, sub_83008610 8 %, sub_831653D0 6 %, and the matrix mix sub_8306F2E8 only 3.5 % now that the output is stereo. The connection mix's own time has no hot arithmetic: its loops clear and copy each connection's buffer (output channels × frames floats a call, the clears and copies run as host memset/memcpy) and, when a level ramp ends, repack every level of the connection to half precision. Removing that work means changing how FMOD's graph buffers are owned, not translating a unit; the reverb (0.3 ms on the Deck with it bypassed) is recorded under "room reverb unit and its pass-through".Established by The Odin call graph cg1071a (0.8.2 v4 Release, | ProbableThe shares are measured; reading the connection mix's own time as buffer clears and copies is probable (the host frames below its leaf samples are its own body). |
sub_83002C20sub_82FFB3F8sub_82FD7228sub_82FD6940sub_82FD7240sub_82FD6F30sub_82FD7210sub_82FD6820sub_82FD5AF0v4sub_830C3DA8sub_830BC540sub_830982E0sub_830979F8sub_830982F8sub_83097FE8sub_830982C8sub_830978D8sub_83096BA8 | FMOD XMA codec FMOD's XMA codec decodes the compressed banks for the mixer. sub_83002C20 (127,787 calls in a race, 5.9 a mix block) calls FMOD's codec read dispatch sub_82FFB3F8 (307,704), whose indirect call at 0x82FFB51C reaches the XMA codec read sub_82FD6940 (246,882 calls, 11.4 a block) through the this-adjusting thunk sub_82FD7228. That read drives the nine XDK XMA helpers (see "XMA register writers") and, through them, the SDK's XMA decoder. The dispatch is shared by all of FMOD's codecs (the same site also reaches sub_82FF5158, 53,428 calls, and MPEG reads come from 0x82FFB470), so the narrowest boundary for a host decoder (NN-4.8) is the XMA codec's own three entries, each a thunk behind one dispatch site: the read above, the seek/reset sub_82FD6F30 through sub_82FD7240 (site 0x82FFB1F4, 2,399 calls, plus 36 direct from sub_82FF4938) and the close sub_82FD6820 through sub_82FD7210 (site 0x82FFA89C, 104 calls). The codec uses only the XMACreateContext and XMAReleaseContext imports; everything else is direct register access. Seek/reset creates contexts through sub_82FD5AF0 > sub_830A4930 > sub_830A3EF8 (956 creates in a race) and releases them through sub_830A4730 > sub_830A3FC0 (877), about 0.07 a frame; a read makes about 77 register writes and 38 reads a frame. On the Odin the XMA path under sub_82FD6940 was 4.3 % of the process cycles, nearly all of it register emulation and decode.Established by Call sequences and indirect targets in the generated code; call counts and indirect-site targets from the probe build (NL-2.3, 115 s race, 12,993 frames); FMOD's codec-name strings; the Odin call-graph profile cg2 (30 fps, before NL-4.1). | ProbableThe read is confirmed as the XMA codec's by its calls into the XMA helpers; the role of sub_83002C20 is probable. The descriptor, the codec layout and the read, seek and reset semantics are in "FMOD XMA codec descriptor and state". |
sub_82FD72580x832C1978sub_82FD71F8sub_82FD64C8sub_82FD5D58sub_82FD5910sub_82FD5AF0sub_82FD6940sub_82FD6F30sub_82FD6820v4sub_830983100x833AD468sub_830982B0sub_83097580sub_83096E10sub_830969C8sub_83096BA8sub_830979F8sub_83097FE8sub_830978D8 | FMOD XMA codec descriptor and state sub_82FD7258 fills the XMA codec's FMOD Ex plugin descriptor at 0x832C1978 (v4 0x833AD468, 124 bytes): the name "FMOD XMA Codec", version 0x00010100, time units PCM and raw bytes, open sub_82FD71F8, close sub_82FD7210, read sub_82FD7228, set-position sub_82FD7240, sound type 22 (XMA) and a 296-byte codec object. Get-length, get-position, sound-create and get-wave-format are null. Each entry is a 20-byte thunk that moves the pointer from the public codec state (codec+28) back to the codec object and tail-calls the body; the four thunks are byte-identical in v4.
Open ( Codec object fields: +196 data offset, +264 the FMOD file, +269 has-seek-table, +272 stream count, +280 block bytes, +284 the decoder block, +292 the seek table (+4 count, +8 the cumulative sample count at each block start). Decoder block: +0 samples to skip per stream, +32 input cursor, +36/+40 the input buffer and its size (two halves, one half submitted per read), +44 the XDK playback handle, +56 first-submit flag, +60/+64 the rate and channels the playback was made for. Read ( In a 12,993-frame race the read ran 246,882 times (19 a frame, all single-stream), submitted 15,092 blocks (1.2 a frame), and set-position ran 2,435 times, creating 956 playbacks and destroying 877; close ran 104 times. NN-4.8 replaces the three thunks with a host decode that keeps these semantics. Established by Field accesses and call sequences in the generated code of the descriptor builder and the bodies; the codec-name string; call counts and indirect-site targets from the probe build (NL-2.3, | ProbableThe descriptor and the entry points are confirmed (the dispatch sites reach them). The field roles come from the code and are probable; the open path was not exercised in the probe run. NN-4.8 replaced the three thunks with a host decode and was dropped after measuring: on the Odin race the in-run A/B (on and off every 180 frames) read -0.05 ± 0.60 ms of process CPU, -0.11 ± 0.08 ms on the XMA decoder thread and -0.04 ± 0.07 ms on the FMOD mixer, since with decoding on the worker (NL-4.1) only about 0.1 ms of emulation was left. Its per-call verify never matched exactly (2,205 of 25,092 calls under 60 dB, after fixing the 512-sample offset from the reuse rule above and catching the direct seeks), so the decoder-history rules at a seek are the hard part of any host replacement. The implementation was removed. |
sub_82FD5850sub_82FD4F20sub_82FD4890sub_83014F08sub_8302A1B8sub_83029B48sub_830142C8sub_83011C50v4sub_83096908sub_83095FD8sub_83095948sub_830D6048sub_830EB368sub_830EACF8sub_830D5408sub_830D2D90 | FMOD MPEG codec FMOD's MPEG codec decodes the radio music and the other MPEG banks in guest software. Its descriptor sub_82FD5850 holds FMOD's MPEG codec name string, and the codec read dispatch's indirect call at 0x82FFB470 reaches its read sub_82FD4890 through the thunk sub_82FD4F20. Below the read are the frame decode sub_83014F08, the synthesis pair sub_8302A1B8/sub_83029B48, the inverse MDCT sub_830142C8 and the Huffman decode sub_83011C50. With the radio off the read still ran 1,963 times in a desktop race (the synthesis 72,036 times), most likely for voice-over, which ships as mono 48 kHz MPEG; the Odin race profile has no samples in it. Its cost with a station playing is not measured.Established by FMOD's codec-name string and the descriptor that holds it; indirect targets and call counts from the probe build (NL-2.3, radio off in the seed); the Odin call-graph profile cg2; a format census of the FSB banks. | ProbableThe descriptor and the read are confirmed; the unit names below the read come from call shape and counts and are probable. |
sub_82FBE908sub_8300D580v4sub_8307F9B8sub_830CE6C0 | room reverb unit and its pass-through FMOD's SFX reverb unit reads through a DSP read callback, sub_82FBE908(unit, in, out, samples, channels). With no input it returns at once. When the unit's channel mask (+36) leaves the input's channels out, it copies the input to the output (FMOD's own bypass) and resets the reverb when the mask changed (+1908); otherwise it runs the reverb sub_8300D580 on the state at +312. The reverb is about a fifth of FMOD's mixer thread in a race on the Deck. Taking the copy path on every call (pinyon_shift_fmod_reverb=false) took 0.28-0.31 ms of CPU a frame off the four FMOD threads on the Deck LCD in an in-run A/B, under #1071's 0.5 ms gate, so the reverb stays on by default.Established by Deck call graph; the replacement in src/guest_native/fmod_reverb.cpp toggled every 240 frames on | Confirmed Negative |
Speech and ambience banks#
| Address | Finding | Confidence |
|---|---|---|
—v4same | Rally co-driver speech banks Rally ships co-driver FEV/FSB speech banks for English (EN) and Mexican Spanish (MX). Its calls play through the audio manager, either as a streaming cue such as MedRight or through the named-event cue factory for authored FEV events. Opening further FSB streams for streamed cues hits the base allocator's out-of-memory trap.Established by Experiment: cue starts through the title's audio manager with non-silent PCM captures; a failed streaming trial. | Confirmed |
—v4CCoDriverPepTalkCPlayRallyChampionDialogueCRallyPostChampMapVOCWaitForVOCSetNormalEQ | v4 Rally audio behaviours v4 adds Rally audio behaviours: CCoDriverPepTalk, CPlayRallyChampionDialogue, CRallyPostChampMapVO, CWaitForVO and CSetNormalEQ.Established by String comparison of the base and v4 images. | Confirmed |
—v4same | Autoshow ambience bank While an XE car is shown, the Autoshow asks for the ambience bank AMB_FA_Autoshow.fsb, which XE does not ship. The miss is logged and harmless, and also happens on the console.Established by File-open log with the XE mod; also seen on console. | Probable |
Radio banks and playlists#
| Address | Finding | Confidence |
|---|---|---|
media/audio/radio/Radio_Music.fsbv4same | radio music bank The radio uses FMOD Ex, not XACT. All music is one loose bank, Radio_Music.fsb (FSB4, 680 MB, 127 samples): plain MPEG-1 Layer III at 48 kHz, 160 kbps CBR, 480-byte frames, mono for the 3D location stations and stereo for Radio1-3, decoded in guest software rather than by XMA hardware. Radio_Music.lst lists the source WAVs, and DJ lines are in Radio_VO_<lang>.fsb.Established by Parsing the bank headers and MPEG frames; a byte-for-byte rebuild of the music bank and all four VO banks. | Confirmed |
media/audio/radio/RadioSystem.xmlv4same | station list RadioSystem.xml defines nine stations: Radio1 Horizon Bass Arena, Radio2 Horizon Pulse, Radio3 Horizon Rocks (stereo music), Radio4_Silent (off), and the mono 3D location stations Radio5_3d_PreRace, Radio6_3d_Autoshow, Radio7_3d_Workshop, Radio8_3d_Paintshop and Radio9_3d_Streetrace. It also has 127 MusicTrack entries (name, artist, FMOD sample name and per-time-of-day likelihoods).Established by Reading the file; station changes in game. | Confirmed |
RadioSystem.xml Playlist noRepeatv4same | station playlists accept added tracks Each station's <Playlist> lists MusicTrack entries that name bank samples by FMOD name. The game plays samples appended to the bank (stock indexes unchanged) when they are added to or replace a station's playlist. The playlist's noRepeat attribute makes the picker skip that many recently played tracks, so a short replacement playlist needs it lowered.Established by A custom-station mod with two test tones replacing all three stations: the title opened the mod's bank and XML and played both tones after station changes. | ConfirmedThe noRepeat meaning is probable; the track-name popup and ident transitions are not checked. |
RadioSoundbankInfo_Music.xmlgenerateradiosoundbankinfov4same | radio soundbank info file RadioSoundbankInfo_Music.xml repeats each sample's three sync points in milliseconds (rounded down) with its sample index and length (FileLength); SyncpointIndexIdentStart is always 2 and OffsetStartNextTrack/SyncpointStartNextTrack always 0/-1. Its header says the game generates it with the launch option generateradiosoundbankinfo, a string present in the v4 image.Established by Computing the file from the bank and comparing it with the shipped one. | ConfirmedThe generator option itself was not run. |
FSB4 sample headersv4same | FSB4 sample header layout An FSB4 bank is little-endian: a 48-byte header (FSB4, sample count, sample-header bytes, data bytes, version, mode, then a reserved field and hash), then one header per sample: u16 header size, a 30-byte name, length in samples, compressed bytes, loop start and end, mode and default frequency. The radio's samples carry an extra SYNC block after the first 80 bytes: a count and 260-byte markers (u32 position in samples, then a NUL-padded name), SongStart, EventStart and IdentStart for every sample. The audio data starts right after the sample headers, each sample aligned.Established by Parsed the shipped | Confirmed |
Radio presentation#
| Address | Finding | Confidence |
|---|---|---|
executable strings | selectable stations are fixed in code The executable names the player-selectable stations itself: the RadioN names, Radio4_Silent for off, ui\textures\horizon\hud\radio\radio1..3.xds and the option strings IDS_RadioStation_Option_1/2/3/Off. Adding a fourth selectable station therefore needs guest code changes, not only data.Established by Strings in the executable. | ProbableThe names are confirmed to be in the executable; that the selectable count is fixed in code is probable. |
Horizon.zip/Hud/Radio/RS_BassArena.xdsRS_Pulse.xdsRS_2Eleven.xdsRS_Off.xdsv4same | station popup logos The logos shown at the right of the HUD when the station changes: 210x100 DXT5 (k_DXT4_5_AS_16_16_16_16), tiled, 8-in-16, one mip level. RS_2Eleven is Horizon Rocks. RS_Off.xds (32x32) is the radio-off icon.Established by Decoding the textures; a re-encoded | Confirmed |
Horizon.zip/Hud/Radio/Radio1-3.xdsv4same | placeholder station logos 64x32 DXT1 images that only read "Radio N". Their paths are the ones named in the executable, but the station popup shows the RS_* textures instead.Established by Decoding the textures; route captures of station changes. | GuessGuess that they are unused in normal play. |
MyProfile.str 0xA29E0xA31E0xA39E0x7693; Tips.str 0x0B3A/0xE4840xF203/0x00630x9730/0x94AE; Livery_Decals.str 0x6AF90x328D0xAEF9v4same | station strings MyProfile.str keys 0xA29E, 0xA31E and 0xA39E are the three station names, the values of the RADIO STATION option (0x7693 is the row label). Tips.str pairs 0x0B3A/0xE484, 0xF203/0x0063 and 0x9730/0x94AE are the loading tips' title and text for Bass Arena, Pulse and Rocks, and Livery_Decals.str keys 0x6AF9, 0x328D and 0xAEF9 name the station decals.Established by Reading the string tables. | ConfirmedConfirmed in the tables; their use on the option screen is probable (not seen on screen). |