OpenTPW

Sound: catalogues, mixer and park music#

October 18, 2026. Status: the original sound catalogues are read, a software mixer plays through SDL, and every sound the original submits through its sound entry (0x51bfc0) and its placed twin (0x51c130) that can be read statically is played, bar the few listed under "Still not played" below. The park plays its original music; the front end its lobby music and ambience; controls click (including the pause menu's backdrop); the map/research drawer, error feedback, the message tube, the postcard and the research window play their cues; the build tools play their size-classed placement and demolition cues and their click sounds (path, queue, coaster and kart/water track tool); ride scripts play their EVENT and REPAIREFFECT sounds and screams through the positional API (the census over 262 shipped objects and 308 scripts finds every node key resolving); coaster trains that bump hard crash; the weather plays its rain and thunder; the level's placed ambients (scape.omp, types 1 and

  1. play with the mixer's distance law; the crowd sentence, the guests' and the staff's voices (walking, idle and work sounds from their state machines), the visitor click, the queue-joins-a-path cue and the advisor's speech and its two key sounds play; and the positioned effects go through a software reverb that follows the ridden ride's SndReverb.map preset (OpenTPW's own stand-in by design, [EXT:audio-reverb]). A button plays cat_ui 0xBD instead of 0x1F when its parent has style bit 0x10 (AUDIO-004 is retired; see "Triggered sounds"). Ride-script sounds of type 10 play from the object type's own sound list ("The object type's own sound list (EVENT type 10)"; no shipped script uses it). No list row clicks: every list owner of tp.exe is traced and none turns a row into message 0x100; a still click on a scroll thumb plays nothing; and the keyboard clicks only where a dialog turns Enter in its text field (or the save screen's Escape) into its tick ("List owners"; AUDIO-041 is retired). The slap reactions 639–641 of cat_speech are played by the cut-off path in AutomaticAdvisor.CutOffSpeech: withdrawing a help message while its speech is still playing cuts the speech off and plays one of the three (cat_speech 0x27F + rand() % 3; tp.exe 0x5994E0/0x5995A4; AdvisorHelpTests.ACutOffSlapsOnlyWhileTheSpeechPlays). No original data is in the repository.

The integration regressions force a rainy storm, pass its rain level and due thunder through the live audio callbacks, and assert nonzero decoded PCM. They also exercise staff turn gating, a flat single scream away from the world origin, terrain-to-listener coordinate conversion, and ride removal with both held and refused scream chains. These checks require OPENTPW_GAME_PATH; they use a mixer without an SDL device. The earlier native front-end and jungle smoke runs did not reach rain, thunder or staff chatter, so those runs do not verify their natural gameplay triggers. The weather cadence, staff presentation stream and held-chain timing retain the qualifications in the approximation register. The second static research round over tp.exe (October 14) settled or narrowed most of the open items; see "Register round 2" below.

Placed sound EVENT origins#

Placed objects route sound EVENT types 3-9 through the positional audio API. The key operand (the second) picks the anchor, as the original's 0x556b90(object, &position, 0, key, 0x200) does for every sound type (0x5575c7 on; tp.exe):

Headless runtimes (no placement) and a nonfinite result keep the flat path. Types 0, 1 and 2 never sample an audio origin or produce sound through this route. Type 10 does in tp.exe (see "Custom-bank EVENT type 10" below), but no shipped script uses it. The dispatcher truncates the three coordinates to whole units before the submit (__ftol in 0x5573d0, as the REPAIREFFECT sounds do), and OpenTPW does the same; the footprint middle's height is the root node's +0x44, the object's own height that 0x556a80 also reads, which is the base height here (AUDIO-908 is retired).

The flag 0x8 loop applies to every one-shot, positioned or flat (the loop test 0x6bc621 follows both branches; AUDIO-019 is retired), so formerly flat placed calls loop too. Returned loop voices belong to the object runtime, including events from its children, and stop when that runtime stops or the object is deleted. Park teardown deletes the park's objects and follows the same cleanup. One-shots keep their existing mixer lifetime. This adds no new audio handle encoding or controller rule and does not stop another object's voices.

An alive owned looping EVENT or repair-hide voice makes runtime/world-save capture refuse with a clear reason: live audio persistence is unsupported. One-shots, finished voices and headless/no-audio or stopped owners remain eligible. No save schema changes or audio continuation/parity claim are introduced by this eligibility restriction.

Synthetic tests use a valid dummy-only model with no render parts, actual placed objects, the real VM/effects path and the real mixer with synthetic decoded PCM. They check every routed type, coordinates/range, the footprint middle for every quarter turn and a multi-cell shape, the node key and the silent unknown key, flat refusal controls, per-call sampling and loop ownership. Original assets, GPU behavior and native emitter geometry/timing remain unqualified.

Placed repair sounds#

tp.exe's REPAIREFFECT handler (0x5562A6) switches the type's repair effect first (0x556DE0, a non-zero value starts it, 0 ends it), then compares the value with 0 (cmp esi, edi; je 0x55635F at 0x5562C5). A non-zero value submits the traced global cat_rides events 111 (0x6F) and 211 (0xD3) using one sample of the object's origin (the placement/render transform of model-space zero, the original's object position 0x556a80, each coordinate through __ftol). The existing PlayAt distance/pan and flag-0x8 loop policy applies independently to each returned voice. Live pair loops join the existing exact-runtime ledger, so Stop, object removal and root-fault containment stop only that owner's loops. They trigger the same narrow live-audio capture refusal; one-shots, finished loops, missing audio and flat/headless fallback do not add a save restriction. No audio handle or save schema is introduced. If the second submission fails, only a partially submitted first loop is stopped before the original exception propagates; a first one-shot keeps its existing lifetime.

(Until October 17, 2026 the port had the two paths the other way round, from a Mac reading in which the pair was the "hide" path and the band sound the "show" path, and it attributed 0x55635F to the value 1. The PC compare is the authority: the two blocks are the same on the Mac, the pair first and the band sound at 0x100B1F78, so the polarity of the port was inverted, not the sounds.)

The value 0 jumps to 0x55635F and plays a cat_kids one-shot at the object too (0x551320(band, 1, 1, x, y, z) with the object's position): with more than five variables, the band is [[vm+0x1c]+0x14], i.e. the script's own variable slot 5 (the array at [vm+0x1c] holds the script variables, 0x556408; the standard ride scripts keep VAR_ONRIDE there), and picks the family (band 1 -> 75, 2-3 and negative -> 79, 4-7 -> 83, >= 8 -> 87, 0 silent; index (a + b) / 50 capped at 3, so 0 here). GameAudio.RepairBandEventForBand does the mapping. The script ends a repair with REPAIREFFECT 0 while nobody is aboard, so that sound is silent in play. The public GameAudio.PlayRepairEffect(int show) API retains its flat behavior (band 1).

RepairHideAudioTests exercises actual placed root VMs, imported-terrain centering, listener/mixer equivalence for both IDs, per-pair sampling, missing or nonfinite origins, show controls, owner/fault teardown and narrow capture policy. Only existing managed PCM and synthetic model/catalog data are used. Loop positions remain the sampled instruction-time positions, rather than following later provider movement.

Held ADDOBJ sounds#

An ADDOBJ or ADDOBJ_EXT of type 3-9 starts its event like an EVENT of that type and keeps the sound under its slot, so a script can end it (KILLOBJ, FADEOBJ), give it a parameter (SETOBJPARAM) and have the object pass move it (every eighth scheduler pass, keyed records only). GameAudio.StartHeldRseEvent starts it through SoundEventSystem.PlayHeld: a repeating event (flags 0x4) as a positioned SoundSentence, a one-shot as a PlacedSound that starts when its sample is decoded (flat without a placement); HeldSound is the handle the runtime keeps (MoveTo, SetParameter, Stop). The parameter call on a placed one-shot is the sentence's (PlacedSoundParameters: the code's value byte into the voice's table, re-evaluating volume and pitch through slots 1-3). The records, the opcodes' tp.exe evidence, the save and resume decision (nothing is saved, as the original's loader starts no sound) and FADEOBJ (quality-controlled released tails, [EXT:fade-poll-host-timing]: the host's poll timing, user-approved 2026-10-30; AUDIO-040 is retired) are in RSE-VM.md. Tests: HeldSoundTests, HeldSoundCorpusTests, HeldSoundFadeTests; fade lifecycle contract.

RSE particle events are outside the sound service#

Static inspection of the identified Feral Mac application corrects the earlier "positioned loops" label. EVENT type key effect passes its first, second and third operands to dispatcher registers r4/r5/r6 (0x100AF9DC–0x100AF9E8). The dispatcher preserves the key in r26 and the effect in r27. Types 1/2 resolve the key through 0x100AC7F0 with selector 0x100; a failed lookup returns before creating an effect. This is a model-key selector, not a sound-catalog ID.

TypeDispatch branch / constructorData supplied
10x100AE97C / 0x1009FD70Effect ID and three position coordinates
20x100AEA58 / 0x1009F968Effect ID, three position coordinates and a three-component direction vector

Both constructors use the same template/pool globals as the particle tick 0x1009F748 and particle shutdown 0x1009F354 (whose diagnostic is prefixed PTCL:). They bound effect IDs to 0–104, copy a 320-byte template into an allocated pool slot and return a generation/slot handle. They do not call the sound submit wrapper 0x100BB4FC. The existing ParLib.P_EFFECT_* names are consistent with this classification, but names alone are not the binary proof.

The dispatcher multiplies position floats by 1024 and truncates to integers; the constructors arithmetic-shift those coordinates right by four. Type 2's second vector is normalized/scaled by the key resolver and initializes velocity using the template's +0xB0 value. Effect bit 0x8000 selects an object-scoped lookup (0x10118018 / 0x10119EF4) with the low 15 bits, rather than a direct particle template ID. EVENT supplies control 1000; EVENT_EXT supplies its fourth operand and non-1000 values reach 0x1009F5E8. That control's meaning, the scoped lookup semantics, complete key transforms, particle lifetimes and rendering remain unimplemented/unqualified. Do not reinterpret these as audio volume, loop flags or SDT member IDs. TPI particle parity is not established.

GameAudio.RseEventCategory and FindRseEvent intentionally return null for 1/2, even when an audio catalog contains a numerically matching ID. The generic object-effects hook no longer counts them as unimplemented effects (since October 18, 2026, EVENT types 1-2 are served by the particle system); the particle side is described in PARTICLES.md: a prepared EVENT 1/2 request (the owner-local preparation in PARTICLE-KEYS.md) starts an effect in the level's own particle pool. No fake sound or audio approximation ID is introduced, and a sound voice handle cannot represent a particle pool handle (the dispatcher discards it).

Reproduce the static evidence without running original instructions:

python3 tools/ppc-analysis/lanes/advisor/rse_particle_evidence.py /path/to/mac-feral/bin
OPENTPW_PPC_BIN_ROOT=/path/to/mac-feral/bin python3 -m unittest discover -s tools/ppc-analysis/lanes/advisor -p test_rse_particle_evidence.py

Sound catalogues (cat_*SFX.map, cat_*BANK.map)#

Every sound the original plays is an event of a sound category. A category is a pair of files: cat_<name>SFX.map (events, sounds, samples) and cat_<name>BANK.map (the sample banks). SoundCatalog reads both in the order of the Mac sound library's map streamer (TbMapStreamer::RegisterSFXData 0x10015F00, ReadCatagory, ReadEvents, ReadSounds, ReadBankDataFromMap 0x10015100 in sound_shared). All fields are little-endian; the Mac swaps every one.

PartSizeFields
Header2816-byte type GUID, u32 flag, u32, u32 category count
Category24u32 event count, then a pointer slot and parameters
Event20u32 id, u32 sound count, pointer slot, u32 priority, u16 flags, u16
Sound42u16 sample count, u32 link count, volume min/max (+12/+13, percent), pitch min/max (+14/+15, signed), delay min/max (+16/+18), weight (+30), float (+34)
Sample16u32 1-based sample number, u32 cumulative weight (out of 65,535), u32, u16 1-based bank number, u16
Link8u32 1-based target sound, u16, byte min and byte max of the parameter range

Each category's events follow the categories, each event's sounds follow its events, and each sound's samples and links follow its sounds. The bank map holds 11-byte records (rewritten at load) and then, per bank, a u32 length and a name such as Sound\UI. All 31 SFX and 31 bank catalogues of the Mac data parse to their exact length.

Bank folders. The record's flag byte (+9) decides where a bank lives: with bit 0x20 the base is the data root's Global folder (0x6bff14-0x6bff3d, string 0x782dd8), otherwise the category's own folder (the map folder's parent). The bank is then opened with one existence test (0x6b9310 -> 0x6c5a00 -> 0x6c58f0: HW then HD, reversed under the manager flags; only HD ships) and a failure returns 0: there is no second folder (AUDIO-002 is retired). No shipped bank record has 0x20 (flags 1, 2, 4, 0x41, 0x42) and every shipped name resolves in its own folder, which AudioRegisterRound2Tests checks against the data when OPENTPW_GAME_PATH is set.

The event flags select the player (CAudioPlaceHolderList::CreatePlaceHolder 0x10011F20): without bit 0x4 a one-shot; with 0x10 a linear sentence; otherwise without 0x2 a one-shot (branching) sentence, and with 0x2 a branching sentence (0x400), a shuffled sentence (0x100) or a plain sentence. The park music event (flags 0x606) is a branching sentence; the lobby music event (0x206) a plain sentence; UI events are one-shots.

Choices use the sound library's one shared, advancing linear congruential generator, in the PC build (tp.exe): every draw loads the shared state (0xfb1f20), computes s * 0x19660D + 0x3C6EF35F, stores it back, and uses ror(s, 13), then either >> 16 or % n. The draw sites: a sound by the running sum of its weights (0x6bc810, >> 16), a sample by its cumulative weight (0x6bc680; 0x6bc6ce stores, 0x6bc6d4 rotates, >> 16), the volume (0x6bc090), the pitch (0x6bc170) and the delay (0x6bc343) as min + r % (max - min) (so the range's maximum is never drawn), and the branch and link choices of the sentence classes (0x6be450, 0x6c3e00). A lone sound, a lone sample and an empty range draw nothing. A sentence does not repeat the sample it just played when there are more than two. The state is seeded once at static initialisation (0x72e09c -> 0x6bb930 -> 0x5f5f10, QueryPerformanceCounter) and is never saved.

Pitch. A sample starts (0x6bc410) with the volume draw, then the pitch draw (0x6bc170): the signed bytes +0xE/+0xF of the sound record are put in order and the step is min + r % (max - min) (a placeholder flag 0x10000 fixes it, a parameter-bound pitch slot supplies it from the parameter). A non-zero step multiplies the sample rate by a float of the tables at 0x782f40 (positive) and 0x783540 (negative, read at +4 * |step|), rounded to an integer for the mixer (0x6d2820); the tables hold 2^((k + 1) / 96) written with six decimals (a few ULP from the exact power; OpenTPW computes them by that rule, which matches all 110 entries of both tables), so the index is one step off: step 1 is already +25 cents, step 0 is the only unshifted one, and 2^(1/96) is never played. The scream, chain and crowd sounds draw 0..6 (steps 0-5, up to +4.4 %); others range from -24..36 to -2..0 steps, and 1,343 shipped sounds have no range. In the video of the original, 141 playbacks sit on exactly the six ratios of 0..6 (median error 0.00014), not on 2^(1/96) or the maximum. OpenTPW draws and applies it in SoundEventSystem.Pitch and AudioVoice.SetPitch for every one-shot, placed sound, sentence segment and chain child; the pitched voice is shorter by its ratio and a sentence's next segment starts when it ends. The chain delays are milliseconds (the video shows sub-second gaps and overlapping children).

OpenTPW draws everything from that one chooser (SoundEventSystem; the crowd's separate stream and AUDIO-035 are retired). The state is seeded from the clock when the sound service starts, but a park reseeds it from its world seed at entry and saves it with the park (WorldRandomState.SoundSeed; it is not part of the canonical hash), so headless runs and tests start from a known state (with sound on the draws follow wall-clock events, so it is not a replay guarantee): that is the extension [EXT:sound-chooser-seed] (retired APPROX:AUDIO-037): the original's chooser is clock-seeded and unsaved.

Mac versus PC. SoundEvents.cs used to follow the Mac reading (the seed is never stored: the only store to CAudioPlaceHolder::mRandomSeed is the library init 0x100118C8, the eight LCG sites only load it, and the draw takes the top 16 bits without the rotate; ChooseRandomSample 0x1000FCB4). That contradicts the PC instructions above, which store every draw and rotate by 13. The PC reading is used. The Mac binary was not re-read in this round (by rule); someone should recheck the Mac claim ([EXT:audio-chooser-mac-reading] in SoundEvents.cs): it may be a misreading of the Mac code, or the builds may differ. Applying the frozen Mac draw made the crowd alternate between two clips although the shipped crowd sections hold 7-52 samples, which the advancing chooser avoids.

The crowd also sends its nearby-visitor count as parameter 7 (Mac game 0x100BC298–0x100BC2A0). For crowd sections whose volume mask selects that parameter, the sentence now applies the original low + floor((high - low) × parameter / 100) interpolation (sound_shared 0x1000F32C, 0x1000F3C8–0x1000F3F4), using the first volume-mask slot (0x1000F2E0). The shipped crowd bounds are 14–22 percent. Sections without that selector retain their range-based volume, and the other parameter producers remain outside this crowd fix. A segment evaluates its volume when it starts, and a parameter call re-evaluates the playing one as the PC library does (0x6bbb80 -> 0x6bbbe0, SoundSentence.SetParameter): a placeholder's four slots hold the event's code (event +0x12), the current sound's two selectors (+0x16, +0x1A, refreshed whenever the sentence moves to another sound) and 0, and a call whose code matches slot 1-3 recomputes the volume (unless a fade is in progress) and redraws the pitch. The crowd event's code is 7 and sounds 1-6 of its twelve bind 7 in slot 1 under the volume mask, so every crowd update moves the playing section's volume and pitch; sounds 7-12 have selector 0. Every sentence holds this table (SoundParameterTable): the crowd, the ride and tour vehicles' engines (EventMap variable 10, 0x51BC40), the coaster trains' loops (EventMap variables 6 to 8, see "Coaster train loops"), the level rain voice (code 8, 0x51E870; its sounds bind 8 under the volume mask, so the drop level also sets the rain's volume within 1 to 2..5 percent) and the park music (code 4, 0x51E79E; no music sound binds a selector, so it only steers the branching) go through the same call, and only a call with the event's own code (slot 0) sets the value the branch picker reads (0x6be5e0 → 0x6be450, table +4). One-shots and chains build the same table from the event and the chosen sound (every placeholder class sets up with 0x6bbf60 and queries with 0x6bc040). The query 0x6bc040 tests only the masks: a bound sound takes its slot's value whether or not a matching call came, a value never set being 0, so the weather's own rain voice (no parameter call) plays at the bottom of its range. The Mac reading of GetRandomVolume kept a random volume for an unset parameter; the PC's is followed. The PC's main loop sends the crowd update (0x51E7B0) and the music parameter on every 32nd world step of 31 ms of the game timer (0x54F82D, WorldStepCadence), about once a second, so the crowd also starts and stops on that beat.

On-demand bank boundaries#

SoundBank retains the entry offset table and opens a fresh, owned stream for each nonempty read. Both sources refuse entry names whose offsets overlap that table; MPEG lookup retains its header and payload bounds checks. Stream positions use 64-bit addition even when the stored entry offset and header size are signed 32-bit fields, so a valid payload or name beyond 2 GiB does not wrap backwards. Each reopened stream's length is checked before allocating the requested buffer. Fragmented reads are completed with ReadExactly; truncated input throws and the stream is disposed on success or failure.

SoundBankBoundaryTests uses small byte fixtures and sparse logical streams to cover these boundaries, count/offset/header/size extremes, every truncated prefix, independent lookups and stream disposal. This is synthetic host-reader evidence; fresh original-bank compatibility and playback checks are deferred while the asset mount is unavailable. The bank still returns a complete requested sample buffer, trusts a stream's reported length, and cannot detect a replacement with the same length. No new format size cap or eager bank loading is introduced. The independent boundary review records the reproduced failures and additional valid alias and failed-read recovery controls.

Park music#

When a park starts, the game sends event 2 of the level's cat_music category (0x100BC144). Each of its six sounds is a section of 8 to 40 segments of 17.5 s in Music/MusicHD.sdt. After a segment, the branching sentence follows the link of the current sound whose parameter range holds the event parameter (AssignSoundToNextBranch 0x100192F0). The links cover 0–14, 15–29, 30–44, 45–59, 60–74 and 75–90, one section each. The park turn sets the parameter to the number of guests in the park halved and capped at 100, then capped at 89, and to 0 in world state 4 (0x101C2444, using 0x100C2344). So the music moves to a busier section for every 30 guests.

OpenTPW chooses the next segment while the current one plays and starts it on the frame the current one ends. Native builds decode on a background task. The browser processes four MPEG frames per batch and yields through a timer between batches, keeping drawing and input responsive. Long sentence PCM can be retained in an 8 MiB LRU cache; the existing short-sample cache is separate. Synchronous and cooperative PCM are identical. A native Layer II segment decoded in about 84 ms in the earlier measurement; browser cost is higher. See browser performance.

Mixer and volumes#

AudioMixer mixes 16-bit voices (resampled linearly) into one SDL queued output at 22,050 Hz and keeps about 93 ms queued. The effects, music and speech channels use the option volumes. While speech plays, music and effects are lowered to SoundInfo.DUCKINGLEVEL (38 % in sound.sam), as the Mac sound service does (0x100BB18C). Without an audio device the mixer runs silently on the wall clock, so lip sync and sentences still advance. --mute turns sound off.

A ride script's DIPMUSIC sets the sound service's music duck request (0x51E710): while it is non-zero the music channel is silent (AudioMixer.MusicDuckRequest, 0x51BE5A), which the end-of-park sequence of Gates.RSE uses. SETREVERB chooses the reverb preset of the ridden ride (ReverbSelector, 0x55A470); the preset drives the effects channel's reverb, OpenTPW's own stand-in by design ([EXT:audio-reverb]). Both are described in RSE-VM.md.

The sound service's on-flags (music, speech, effects) are the library's group enable, not the volume: a switched-off group's voices are stopped and start again from their beginning when it is back on (SoundEventSystem.GroupDisabled, the AUDIO-038 row); the options screen's toggles set only the volume to 0, and the flags follow at OK, on leaving a park and from a loaded save's Sound block (GameAudio.ApplyOnFlags).

The advisor plays its clip on the speech channel; its lip-sync position is the mixer output the listener has been given since the clip started.

Volumes of a loaded original save#

The user's decision (2026-10-19): a park started from an original save takes the save's volumes, as tp.exe does. The save's Sound block holds the sound service's shadows of the mixer values (docs/TPWS-PAYLOAD.md, "Sound block"): master +0x18, effects +0x1C, music +0x20, speech +0x24 (percent) and the on-flags +0x38/+0x3C/+0x40. The loader 0x51C400 copies them back into 0x803AA0; park entry ends (state 9 of 0x54E360, 0x54F3AE) with 0x51E6F0(0), which sets the dirty word +0x28, so the next sound tick 0x51BD70 pushes all seven to the mixer whatever dirty word the save held. The post-load pass 0x415140 does not call the options applier 0x423DD0, so the park plays at the save's volumes while the options screen shows the player's own. Which parks load a save: park entry (state 9 of 0x54E360) loads the newest file in the player's folder of the park through 0x5ACCF0 -> 0x414D40. That is a player's own save when one is chosen, and for an Instant Action player the copy of the level's easymode.TPWI that 0x5C8190 puts in each level folder when the player is created; a new Full Simulation park has no file and loads nothing. OpenTPW does the same for every park started from an original save, a player's own (--original-save) or the shipped Easymode.TPWI seed (Instant Action, the reference start) (Level.OriginalSaveSound, GameAudio.ApplySavedSound, SavedSoundVolumes; the import report names the values):

Triggered sounds#

Every game sound is submitted through one wrapper (0x100BB4FC: category handle, event id, parameters, 3D position) that queues a message on the sound service. The sound manager keeps its categories at fixed offsets (0x100BC6F0 registers the global cat_ambient/cat_kids/ cat_rides/cat_ui/cat_staff/cat_speech at offsets 0/4/8/12/16/20, 0x100BC438 the global cat_globallobbysfx at 40, 0x100BC4C0 a level's cat_locallobbymusic/ cat_locallobbysfx pair in a table, and 0x100BC864 a level's cat_ambient/cat_rides/ cat_speech/cat_music at 24/28/32/36).

SoundEventGame actionSource
Park musiccat_music 2 (branching sentence)a park opens; busier sections as guests arrive0x100BC144, parameter 0x101C2444
Lobby musiccat_locallobbymusic 1 (sentence) of the selected levelthe front end's selected island0x10095A24 (start 0x1009598C, registration 0x100BC4C0)
Lobby ambiencecat_locallobbysfx 2 (sentence) of the selected levelas above, looping0x10095A50
Lobby island one-shotscat_locallobbysfx 3, 4, 5 on the lobby generator's drawsthe front end shows (see "Lobby effects")0x10095340–0x10095450
Start-up soundcat_ui 0xD2 (flat one-shot, flags 0x200)once, when the front end first shows (OpenTPW does not play it for a run that loads a park directly)tp.exe 0x54de6a (start-up init 0x54dcf0, called from WinMain at 0x45abed)
Control clickcat_ui 0x1F, or 0xBD when the button's parent has style bit 0x10a button release (message 0x100 to its parent). 0xBD is the up and down arrows of a vertical list scroll bar (type 3, style 0x10), the column headers of a sortable list (type 7, styles 0x91 and 0x291) and the toggles of a radio group (type 8, style 0x11). Every other button plays 0x1F. A held arrow waits 500 ms, then steps every 125 ms, and the release after repeating has started plays nothing. Dragging the thumb, clicking the track and a still click on the thumb play nothing (the thumb's procedure 0x66bb9b replaces the button class and answers its release with 0x802 to the slider). Window procedures also send 0x100 to their own window (0x48d83b, 0x49973e, 0x49ec53, 0x4a6df5 (via the dispatcher 0x658d9f), 0x4b640a, 0x4b9f06, 0x4bb020 and 0x4bfc29; ids -1, -2 and 0xe059, on 0x802 or 0x804), and the hook clicks for those too by that window's own style: style 1 in all eight, so 0x1F ("List owners" maps them to OpenTPW's dialogs).tp.exe hook 0x485780, the 0xBD/0x1F choice at 0x4857cb; the button class 0x668f9c, the only sender of 0x100 for a mouse release over a button, posts it to its parent ([+0x60]) at 0x6691eb through the queue 0x658ccc; window procedures 0x48d83b, 0x49973e, 0x49ec53, 0x4a6df5 (via the dispatcher 0x658d9f), 0x4b640a, 0x4b9f06, 0x4bb020 and 0x4bfc29; the pump 0x658e42 calls the hook at 0x658eb2 (dispatcher 0x658d9f); arrow ctor 0x6688b3 (+0x13c = 500, +0x140 = 125), timer 0x668dd9, release 0x668eff. Mac 0x10137FD0
Map/research drawercat_ui 0x1C open, 0x1C then 0xC2 closethe map and research windowstp.exe 0x4a14f0 (open 0x4a1737, close 0x4a186f, slide end 0x4a1947)
Error feedbackcat_ui 0x1Da rejected purchase or placement0x10139A40 (buy window callers 0x10163AFC/0x10163BFC)
Path toolcat_ui 101 lay, 175 refuseda committed path line; a click on a refused path or queue ghost (or a refused track commit), at the clicked cell (x * 10, 0, z * 10)0x10070DE0 (commit), tp.exe 0x52496e (refused 0xAF, 0x524a80, at the release that follows a park-view press (byte 0x8186d8, set by the press handler 0x524790) outside a layout replay (0x785a2c); AUDIO-022 is retired)
Track and coaster tool clickscat_ui 0xCE (kart and water track tools), 0x65 (coaster tool)every release of the tool's click, at the clicked cell (x * 10, 0, z * 10)tp.exe 0x526cb3 (0xCE, submit 0x526ce9), 0x5263df (0x65, submit 0x526423)
Pause menu backdropcat_ui 0xC1, flata click on the pause menu's backdrop outside its linestp.exe 0x492d80 (via 0x485aa0)
Coaster crashcat_rides 0xC (global) at the bumptwo trains bumping with new speeds more than 1.0 aparttp.exe 0x43cd60 -> 0x439840 (submit 0x4398cd)
Advisor key soundscat_ui 0xC5 at a golden-ticket clip's start, 0xC6 once per response at its key timer, both flatthe advisor presentationtp.exe 0x598F1C, 0x5999C4
Rectangle ambientsglobal cat_ambient 2 or 3 at the listener's clamp into a rectanglethe level's scape.omp type 3 records, for the park's lifetimetp.exe 0x550e00, 0x51c5d0, 0x6bd5f0
Ride-script soundsany event of the routed categoryan RSE EVENT type key id instruction: type 3 level cat_rides (no fallback to the global one: an id the level lacks is silent, 0x6c5870; AUDIO-011 is retired), 4 level cat_ambient (likewise), 5 global cat_rides, 6 cat_kids, 7 cat_staff, 8 cat_ambient, 9 cat_ui0x100AE930 (dispatcher, guard bgt 10 at 0x100AE938); tp.exe 0x5575c7 (anchored at the key's model node, the footprint middle for a negative key, nothing for an unknown key; see "Placed sound EVENT origins")
Ride screamscat_kids 71–74 held per ride (STARTSCREAM), STOPSCREAM stops it; cat_kids 75–109 one-shot (SINGLESCREAM)a ride script's scream instructions; band 1 → 71, 2–3 → 72, 4–7 → 73, 8+ → 74; parameter (level + 50) / 2 (parameter 6 on the PC); positioned at the ride's footprint middle0x100B19DC (STARTSCREAM), 0x100B1A74 (STOPSCREAM), 0x100B1A90 (SINGLESCREAM), 0x100ACA38, 0x100ACB7C, 0x100ACC24, 0x100ACE68; tp.exe 0x551130 (STARTSCREAM submit: positioned, 0x47-0x4A at (x, y, z), parameter 6 = clamp((a + b) / 2, 0, 100)), 0x555edb, 0x555f1b -> 0x556af0 -> 0x551320
Repair soundscat_rides 111 and 211 for a non-zero value; cat_kids 75 (families 75–90, by the script's variable 5) for 0an RSE REPAIREFFECT 1/0 instruction, both at the objecttp.exe 0x5562C5 (the compare), 0x5562CD–0x556351 (the pair), 0x55635F / 0x551320 (the band sound); Mac 0x100B1EC0, 0x100B1F00 (pair), 0x100B1F78 (band)
Raincat_ambient 0x21 (branching sentence, parameter 8 = the drops' level 0–100), and a second flat 0x21 voice of the weather thing's own while it rainsthe weather's current drops: started above 0, stopped at 0 (also in snow); the thing's own voice starts in rain mode and stops in snow or clear0x10103394 (level), 0x100BC3D4–0x100BC41C (global voice); tp.exe 0x512a7f (level), 0x5131f0 / 0x51327c (the thing's voice, handle +0x54)
Thundercat_ambient 0x20 at the last bolt's top (x, 300, z)a lightning strike's thunder countdown ends0x101034C8–0x10103518
Placed ambientscat_ambient (global) or the level's cat_ambient, the effect the scape record names; a sentence-type effect plays as a positioned sentencethe level's scape.omp type 1 records, started with the park and kept for its lifetime; range from the recordtp.exe 0x550e00 (type 1 -> placed submit 0x51c130, coordinates /1024 toward zero, range *2/1024); PlacedObjectsFile, distance law of the mixer (AUDIO-018)
Staff voicescat_staff 160–169: walking/idle per role (handyman 160/161, mechanic 162/163, entertainer 164/165, guard 166/167, researcher 168/169)a staff member each park turn, 1 in 16 draws (AUDIO-024)0x100D5EAC, 0x100D6434, 0x100D9BAC, 0x100D9F10, 0x100D2DDC, 0x100D2E44, 0x100D4EF0, 0x100D4E18, 0x100F0460, 0x100F0630
Crowdcat_kids 0x5B (branching sentence, parameter 0–100)guests within four cells of the camera; louder/bigger sections as more gather, stopped when nobody is nearcount 0x101C2490 (0x100C313C, radius 4, cap 100), sentence 0x100BC210/0x100BC2E0
Advisor speechresponse table: sample and LIP from the global or level speech banktraced advisor events0x10006B7C

How often screams come. A held scream is a chain of one-shot children (tp.exe 0x6bdae0 → 0x6bdb50): each child starts a delay after the previous child's start, drawn from the event's bounds — 1–3 s for one rider (event 71), 0.5–2 s for two or three (72), 0.1–1 s for four to seven (73) and 0–0.5 s for eight or more (74) — and earlier children play out, so a full ride screams almost continuously, as in the original. What limits it is the sound manager: it ticks only 12 audible voices (0x6b62b0), ranked by the event priority with the ground distance as tie-break (0x6bb9f0 stores the priority beside 0xFFFF − d²/100, and the admission 0x6b6bc0 compares both as one word), and a scream is audible only while the listener is within its range of 95 sound units (9.5 cells) over the ground. Screams have priority 2700, below the crowd (5300) and most ride and ambient sounds, so a busy scene leaves them few places. A one-shot keeps its place in that pool until its sample's nominal end plus 250 ms plus its drawn delay, finished or not (0x6bc01b, 0x6bcb60; events flagged 0x4 or 0x8 are exempt). Among equal ranks the newer voice keeps its slot (0x6b6a80 links a new voice at the head of the voice list, 0x6b6bc0 slots a voice before the first slot of strictly lower rank). A chain outside the pool or out of range starts no new child, its first included (AUDIO-038); every other event voice out of range without the any-distance flag (event flag 0x200: the crowd sentence, music, speech, most UI sounds) has its sample stopped by mixer message 3 (0x6bca70), a sentence standing still until the listener returns. A catalogue loop retains its logical owner but releases its sample output; after return and pool admission it creates fresh output from the selected source (see AUDIO-038). The visitors' chatter and laughter is the crowd sentence (cat_kids 0x5B), a continuous bed at 14–22 % volume while guests are within four cells of the camera: its segments have no delay in the data.

APPROX:AUDIO-033 (the distance law's rolloff) is retired: a positioned voice is turned down to 1 inside the minimum distance 2, ((max - d) / (max - 2))^0.2 up to max (max(range, 2.1), tp.exe 0x6c3b8a) and 0 beyond (QMixer.dll 0x1800a0d0, enable-word flag 0x1000, always set by tp.exe 0x6d230e); the exponent is the float of the sound system object's +0x2c method (0x6b9bb0), 0.2 (0x70a624) when the object's flag 0x40 is set and 0.8 (0x70a628) otherwise, and the flag is set whenever the driver is the QMixer class (0x6d2d70, whose +0x4c is 0x5d1400, mov al, 1): only the fallback driver class (0x6d1e30) would give the software 3D layer and 0.8. This holds while the QMixer class initialises (0x6d2de0: COM creation of the QMixer object and its set-up calls, which the game's installer registers); if it fails, 0x6c4190 falls back to 0x6d1e30 (+0x4c is xor al, al, 0x4f6010) and the exponent would be 0.8. OpenTPW used 0.8 before.

APPROX:AUDIO-034 (held-chain timing and link walk) is retired: a chain's next child is made when the newest child's end has passed (0x6bdb50) and the link is walked then, with the parameter of that moment (0x6bdbb0 → 0x6c3e00); a sound without any link makes the chain start over at the event's first sound on the next pooled tick; links that exist but do not hold the parameter write 0x7f into the root's parameter byte and set the root flag 0x40, which only the root's parameter setter (0x6bda90, called after the slot write 0x6bbb80) clears, and only for a stored byte other than 0x7f, so the chain makes no child until a different parameter is set or it is stopped (SoundChain.Parameter; the ride scripts set it only when the scream starts); the link pick is ror13(state) % total over the covering links' target weights (SoundChain.NextLink).

Scream diagnostics (October 15). The original's video shows screams in bursts of 2-17 s with 2-4 samples a second near a busy ride, so OpenTPW's rate is not too high; the report's candidate causes were counted. A second STARTSCREAM before a STOPSCREAM is refused by 0x551130 (log 0x765a4c) and leaks the old chain (the caller stores the 0 over the handle, 0x555ee3/0x555ee6); GameAudio.Screams counts every STARTSCREAM by band, the refusals and the stops, from the script's own view of its handle, so the headless gates count them without audio (--m3-gate and --m4-gate print the summary; the native --debug-sim-minutes prints it for a running level).

So OpenTPW's scripts never reach the leak path, and no chain piles up. The band is the script's operand (STARTSCREAM V5 20: variable 5 is VAR_ONRIDE, which the script maintains per rider with LIMBO and UNLIMBO); tp.exe reads the operand itself, with no visitor lookup (0x551130 takes it as its second argument; 0 returns, 1 picks event 0x47, 2-3 (negative too) 0x48, 4-7 0x49, 8 and above 0x4A, parameter (level + speed) / 2 clamped to 0..100), exactly what GameAudio.ScreamBandEvent and ScreamParameter do. The bands run from 0 to the ride's capacity (5 for Belly Bounce, Upgrades[0].InitCapacity), and the data fixes that capacity, so OpenTPW's band equals the original's for the same riders; whether the original seats as many riders as OpenTPW (boarding and queue pace) is the guest slice's question, not the band's. Near a full ride a band of 4 or more picks the 0-500 ms and 100-1000 ms event (73, 74) in 43 % of the starts of the jungle run, as in the original's busiest minutes.

Held screams in a park save (October 18). The script's handle is state, not sound. OriginalObjectEffects keeps whether the script holds a handle, the STARTSCREAM band, level and speed word, the level of the last SCREAMLEVEL while the handle is held, and how many handles refused starts lost. A run without audio (headless, --mute) gets the same values as a run with a sound service, and a park save stores them, so its snapshot and hashes do not depend on audio. The refusal is decided by the script's handle. Both STARTSCREAM operands and SCREAMLEVEL's operand are resolved whether or not a handle is held (tp.exe 0x555E5E, 0x555FDA). The chain only plays the held scream. This deliberately models tp.exe with its sound running: without a sound device its chain start 0x51bfc0 returns 0 (DAT_00802bc8/DAT_00802bd4 unset or a failed play), so the original then holds no handle, never refuses and a SCREAMLEVEL (0x51bc40, which returns 0 the same way) clears it. OpenTPW keeps the sound-on behaviour for every run so that saves do not depend on audio.

A restore brings the state back exactly and starts no sound, so a candidate park that a failed load rejects leaves no chain in the live park. Once GameFlow.ResumePark has entered the park's audio, Level.ResumeHeldScreams starts each held scream's chain from its operands. Entering the park's audio stops every chain of the park it replaces, so a chain started earlier would go silent at once. A lost handle is restored only as a count: its chain does not scream again.

Traced in the binary and played:

Not played:

Event coverage (round 7)#

Wired in round 7, each from the instruction that submits it (the tags sit at the code): the upgrade sound cat_rides 0xB8 (0x55a2e5), the placement cues cat_ui 0x8D-0x90 and the demolition cues 0x96-0x99 by footprint size (0x528e30, 0x5285a2; the demolition's place is (width x 10, 0, height x 10), a quirk kept), the message tube's posted (0x1E, 0x48edb4) and clicked (0xC0, 0x48e043) sounds, the postcard 0x95 (0x4a9380), the research window's two hums 0x9A/0x9B and the effort slider 0x9C with its parameters (0x4aa4f5, 0x4a97ad, 0x4a9a53), the stop-guard cue, and the guests' till (0xD0), drink (0x83), meal (0x84), toilet thought (0x85), pause (0x7E), vomit (0xCC) and ride-removed (0x80) voices (0x4fe1cb, 0x4fe303, 0x4fca3e, 0x4fc83a, 0x4fed86, 0x4fb3f5). The staff's walking and idle voices were already wired. Script-driven events (the ride scripts' sound instructions) play through the ride script system. The UI events that round left open are settled: 0xC1 is the pause menu's backdrop click and 0xCE the kart and water track tools' click (see "Finishing pass"), 0xC5 and 0xC6 are the advisor presentation's key sounds, and the track tool's other sounds are the coaster tool's 0x65 click and the trains' crash. cat_ui 0xBD plays for the three button families in the control-click row (AUDIO-004 is retired). The slap reactions 639–641 of cat_speech are played by the cut-off path in AutomaticAdvisor.CutOffSpeech (cat_speech 0x27F + rand() % 3; tp.exe 0x5994E0/0x5995A4; AdvisorHelpTests.ACutOffSlapsOnlyWhileTheSpeechPlays).

Finishing pass (October 18)#

Rectangle ambients (scape.omp type 3)#

The level loader 0x550e00 handles three record types (the file opens OBJ_, a count and a record size; the first 15 words of a record are kept). Type 1 is the ranged placed sound (0x51c130), type 2 a particle effect, and type 3 a sound that follows the listener inside a rectangle: it submits 0x51bfc0(0, cat, word 2, word 3/1024, word 4/1024, word 5/1024) (the category is the global cat_ambient for word 1 = 0, the level's otherwise) and binds the returned handle with 0x51c5d0(handle, x, z, w7/1024, w8/1024), which stores the rectangle in the voice (0x6b64b0: +0x4C, flag 0x1000 on +0x30). Every tick of the voice (0x6bca10) tests the flag, which is never cleared, and runs 0x6bd5f0: the voice is put at the listener's place clamped into the rectangle (x into [x1, x2]; z capped at z1 and then raised to z2, the shipped records running z down from z1 because their extent word is negative; y is the listener's), and the mixer is told. The ordinary range test follows, so the sound is on the listener inside the rectangle and at its nearest point (turned down by the distance law, silent past its range) outside. The shipped files hold five such records, all global cat_ambient events 2 or 3 (jungle two, the other three themes one each, at x 353 to 373, z 21 to 32, 97 to 195 units wide). GameAudio.StartRectangleSound starts each as a placed one-shot or sentence at the clamp of the listener and GameAudio.Update moves it every frame (RectangleSoundPlace). Not verified against a capture: how audible the five ambients are (their events' own ranges decide).

The object type's own sound list (EVENT type 10)#

The dispatcher 0x5573d0 accepts types 1 to 10. Case 10 (0x557686) reads the thing type from +0xAC and takes the type's own sound category (0x4145e0, type record +0x4F0). The type loader fills that slot: 0x41F420 looks for cat_rideBANK.map, cat_rideSFX.map and BankHD.sdt in the type's archive and, when all three are there, 0x51B4F0 registers the category cat_ride from the archive's folder (0x41408D-0x4140A6). The scoped particle templates 0x414420 loads afterwards share the table: each *.emt member goes to +0x4DC + 4 x atoi(the last character of its stem), so a template numbered 5 overwrites the list (OpenTPW plays nothing then; no shipped archive has one). Without a list case 10 logs RSSE: Tried to trigger a custom effect with no registered custom sound bank (0x765E18) and returns 0 before the key is resolved; otherwise it submits 0x51bfc0(0, the type's category, id, x, y, z) with the key resolved by 0x556b90 as for types 3 to 9, and ADDOBJ keeps the handle as for those types. ObjectTypeSounds and ObjectCatalogEntry.OwnSounds load the list once per type, OriginalObjectRuntime plays it (ObjectTypeSoundsTests; RSE-VM.md).

The census over every shipped script (308 scripts, EventKeyCensusTests) finds the type operand literal everywhere and the counts type 1: 67, type 2: 104, type 3: 251, type 4: 13, type 5: 67, type 6: 25; no script uses type 10 (or 7, 8, 9, 0). Only Jungle's loudspeaker (features/speaker1) ships a list (events 2-5, bank Speaker\Bank), and its script plays with ADDOBJ 4. Its bank is resolved by the folder rule above ("Bank folders"): the rule looks for /levels/jungle/features/Speaker/BankHD.sdt while the archive holds its own BankHD.sdt. The folder the original registers the list from is the same archive object's (0x413DDA/0x41409A), so it most likely misses that bank as well: a mismatch in the shipped data, which no shipped script reaches.

Reverb ([EXT:audio-reverb])#

The original does not mix reverb in software. SndReverb.map (file version 2000, 32 entries, 15 present, 820 bytes) holds 13-dword records that tp.exe sends, in 0x6C46B0, to the audio device as an EAX 2.0 listener property set (property 1 of the listener set, 0x38 bytes) in the order lRoom (word 3), lRoomHF (4), flRoomRolloffFactor (11), flDecayTime (5), flDecayHFRatio (6), lReflections (7), flReflectionsDelay (8), lReverb (9), flReverbDelay (10), dwEnvironment (0), flEnvironmentSize (1), flEnvironmentDiffusion (2), flAirAbsorptionHF (12) and the flags 9 (an immediate), or, when the device has no EAX path, to the backend's vtable slot 0x50. QMixer.dll's five reverb exports (Environment, DecayTime, DampingFactor, Mix, Volume; setters at 0x18003ED0, 0x18003F40, 0x18003FB0) range-check their argument, store it and forward it to a COM object (+0x10C, made by 0x1800B530) through its vtable slot +0x38; the DLL contains no delay line, comb, allpass or reverb constant. There is therefore no software algorithm to port. The shipped presets:

EntriesSizeDiffusionRoomDecayDecay HFReflectionsReverbRolloffAir absorption
07.50.650 mB1.0 s0.30 mB at 0 s0 mB0-5 dB
1-8, 11-147.50.650 mB4.0 s0.30 mB at 0 s+600 mB0-5 dB
91.50.5-500 mB5.0 s0.1+500 mB at 0.15 s0 mB10-100 dB
101.50.5-500 mB12.0 s0.10 mB at 0 s0 mB0-5 dB

OpenTPW builds ReverbUnit (source/OpenTPW/Audio/ReverbUnit.cs), a Freeverb-style network (eight damped combs and four allpasses per side, a mono send, Freeverb's published lengths scaled to 22,050 Hz) whose parameters follow the held record: the comb feedback gives the tail the record's decay time (10^(-3 D / T)), a one-pole damping gives the high-frequency decay ratio, the allpass gain follows the diffusion, the lengths follow sqrt(size / 7.5) within a factor of two, the return level is 0.25 x 10^((room + reverb) / 2000) (preset 0, the default outside a ridden ride, is not mixed at all: its 0 mB record would reverberate every positioned sound of the park), the pre-delay is the reverb delay and three early taps start at the reflections delay. AudioMixer sends the positioned voices of the effects channel through it (interface clicks and other flat voices, speech and music stay dry) and adds the return before the 16-bit conversion; no preset (no SndReverb.map in the game folder, which sits beside Data, or the preset of a level the map lacks) means no send at all. GameAudio.SelectReverb hands the held preset's record to the unit and GameAudio.LoadReverbMap reads the file when the sound service starts.

A design choice, not a port ([EXT:audio-reverb]; APPROX:AUDIO-039 is retired). The user decided on October 19, 2026: "nagalm mag EXT" (the reverb may be an extension). The evidence above leaves nothing to port: tp.exe sends the 13-dword record to an EAX 2.0 property set or to the backend's vtable slot 0x50, QMixer.dll only forwards it to a COM object (+0x10C, made at 0x1800B530) and holds no DSP, and the actual reverb lives in the sound device or its driver, which can be neither recovered statically nor captured. The preset selection (0x55A470 -> 0x51C8D0, sent only on a change) and the record's word order (0x6C46B0) stay ported; the network, its constants, the size mapping, the dry default preset 0 and which voices it covers (the positioned effects; the original's device may have reverbed 3D buffers only, or every voice) are OpenTPW's own stand-in.

QMixer.dll (original mixer, static)#

tp.exe reaches the mixer through an adapter (0x6d2100-0x6d2d80, vtable 0x711920) over the QSWaveMix* API. [BIN:QMIXER-DLL:0x18005830] Every voice runs in the software channel stage (mode 0x1000000); the volume table is at 0x782e40 in tp.exe, the pool holds 12 voices (5 in the other mode). Volume and pan laws and the distance law are in the AUDIO-018 row and the AUDIO-033 note above and are implemented by AudioListener and AudioMixer (AudioMixerLawTests). The reverb exports hold no DSP: they forward to a COM object (see "Reverb"). Read since October 28, 2026: the SetPosition integer message for flat voices (AUDIO-018 row). Doppler is read and pinned but not applied (AUDIO-018 row). Not read: ducking beyond the speech duck of sound.sam.

AUDIO-009 is retired: the refusal stages (0x535670/0x536100) submit no sound; the refused click's only cue is the release handler's cat_ui 0xAF behind the refused-ghost latch (0x524A63, 0x524AA7), which it plays in every tool mode, the placement modes 4 and 0x3B included (ParkHud plays it for a refused build click at the release, Level.BuildClickRefused). [EXT:cannot-build-sound] is narrowed to the "Cannot build" message text and to the error feedback cat_ui 0x1D where no 0xAF played (a refusal the host sends back; a placement still waiting for the host takes no click and so no cue, under [EXT:online-coop-commands]; the original skips the cue only during a layout replay, 0x785A2C).

Pause sound (UI-096, October 31, 2026)#

UI-096 is retired. The game pause object (0x786B68) does three things to the sound system, and GamePauseSound is each of them (AudioPauseSoundTests, the owner changes in ApplicationPauseTests):

PauseResumeOriginalOpenTPW
a game pause (0x4092A0(.., 0): the pause menu and the screens opened from it, the map, the postcard, the message boxes, the P key)0x409300 with the byte +0x20 clearthe advisor pause 0x598960 (only with speech running, the advisor option byte 0x78D90C on and a handle in 0xF79680: record 0x700B9C, execute 0x6B5C50 -> 0x6B8A10, then the driver's pause-channel slot 0x6D2500 = QSWaveMixPauseChannel(.., flag 0)) sets the flag 0xF797C4; 0x51C1C0(1) stores the sound entry's paused word 0x803AD2GamePauseSound.Pause(false): SpeechAudioPlayer.AdvisorHandle (the speech now playing through the game mixer) gets AudioVoice.Paused, which the mixer leaves out of the mix with its place in the sample kept; ListenerRaised
the application's deactivation in a park (0x46B74C: 0x4092A0(1, 1))0x409300 with the byte +0x20 setthe mixer pause 0x51BCF0: record 0x700B64 (execute 0x6B5640) -> record 0x70A268 (0x6B8E40) -> the driver's slot +0x38 (0x6D25A0) = QSWaveMixPauseChannel(session, 0, flag 1), which pauses every channel of the session (0x18003490 walks them with 0x18007380); the resume 0x51BD30 (records 0x700B68 / 0x70A270, 0x6D25C0) is QSWaveMixRestartChannel(.., flag 1) on every channelGamePauseSound.Pause(true): AudioMixer.Pause (nothing is mixed, no voice moves, the reverb tail stands still), AudioMixer.Resume restarts every channel, also a handle paused on its own
the front end's deactivation ([0xF82884] set)its activation0x51BCF0 / 0x51BD30 directly (0x46B70A, 0x46B73C)GamePauseSound.ObserveFrontEndFocus (once per frame; offscreen automation is no deactivation)

The paused word is read by one function, the listener call 0x51C1D0 (the park loop's 0x54F958 / 0x54F9E4 and the front end's 0x54E70E): while it is not 0 the place's height (the second float) is the constant 10000.0 (0x700B28) in place of the caller's, and the front, up and the other two floats go through. GamePauseSound.ListenerPlace is that, applied in GameAudio.UpdateListener and UpdateLobbyListener while the sound system runs (the original's entry points return at once otherwise). What a raised listener does follows from what is already ported: the sound library ranks and range-tests voices over the ground distance only (0x6BB9F0 reads x and z), so nothing is stopped; QMixer's distance gain uses the full three-axis distance (0x1800A0D0), so every positioned voice goes silent, and a voice placed flat (speech, music, most interface sounds, PlacedFlat) or one that follows the listener (the land's rectangle ambients, 0x6BD5F0: its y is the listener's) is unchanged.

The words the pause object keeps are mirrored, including their quirks. The resume undoes what the last pause did (the byte +0x20 holds the last pause's second argument and is not cleared): a deactivation pause over a game pause (the P key, then the window loses focus) resumes the mixer only, so the paused word stays up (positioned sounds stay silent) until the next game pause is resumed or the next level starts (0x415140 clears the word through 0x51C1C0(0), 0x415254); a restart of every channel also restarts a paused advisor handle. The advisor's stop 0x5994E0 resumes a paused handle and clears the flag before it releases it. The front end's first frame resumes the pause object (0x54E67B), which GameAudio.LeavePark does. The owners that call the pause are those of 0x4092A0 (docs/UI.md, "Pause owners"); the speed buttons' pause and the texture-pack download's wait ([EXT:texture-pack]) never call it, and a shared park or a read-only visit takes no local pause ([EXT:online-coop-lockstep]), so none of them touches the sound (ParkHud.ObservePauseSound, once per frame).

[EXT:offline-focus-pause] covers the host's side of the deactivation: the focus is sampled once per frame in a park and in the front end (GamePauseSound.ObserveFrontEndFocus), and the browser never sees a focus loss (OpenTPW.Web.Veldrid/Input.cs: Focused => true), so its mixer is not suspended on deactivation; the game pause's sound side (menu, P key) works there as everywhere. A park's start and end drop the front end's sampled focus, so returning to the lobby unfocused is not a loss.

Host plumbing, not an original rule: the mixer keeps up to TargetQueuedFrames (about 93 ms) mixed ahead in the device's queue, so a pause is heard up to that late, and its resume as late again.

Lobby effects#

The front end's island effects follow the original's islands update (CLBScreenComponentIslands::vf2, 0x10094474), stepped by LobbyEffects at the 60 Hz reference rate ([EXT:frame-driven-at-60hz], APPROX:UI-940 is retired; the original runs once per rendered frame, 0x5d5c50 → 0x5e0470):

Weather visuals#

The simulation side of the weather (ParkWeather) drives the visuals the same way it drives the sound: the drawn drop count is the simulated CurrentDrops (capped by MaxRaindrops), snow shows when the snow band holds, and every lightning strike reports its bolt top (TakeBoltTops, at the strike itself; the thunder still follows later through TakeThunder). The look is the original engine's CRain renderer, read statically from the Mac engine_shared library (0x1001CF38 GameLoad, 0x1001C884, 0x1001FCE4, 0x1001ECD0 rain, 0x1001F198 snow, 0x10020150, 0x1001EA18, 0x1001E2B0, 0x1001DE6C, 0x1001D578 bolts, 0x101035D4 the strike) and tp.exe (0x57F1F0-0x57F380, 0x57EEC0). WeatherVisualState holds the GPU-free state and geometry (unit-tested); WeatherRenderer draws it (content/shaders/weather.shader, textured, depth-tested without depth writes) and reads its inputs through IWeatherVisualSource plus an original-to-engine mapping and a pause predicate, so the lobby can reuse it later without ParkWeather or Level.

Behaviour worth knowing:

Near-plane measurements (October 27, 2026)#

AUDIO-904 is retired (user decision, October 27, 2026): the original near-plane behaviour is the only one and [EXT:weather-near-plane] and the OPENTPW_WEATHER_NEAR switch are removed. The measurements that led to it, kept as history (both variants were built; macOS Metal, Debug, offscreen; D3D11, Vulkan and WebGL were not run):

Result: the weather's depth is written in the scene's own depth space (WeatherProjection.WriteDepth), held at 0 or above; the scene's near plane is untouched and the weather has none of its own.

Forecast warnings#

ParkWeather's forecast (a quality rolled Weather.DaysOfWarning days ahead and applied when its timestamp passes; see "Weather schedule" below) is presented by WeatherForecastState (pure, unit-tested) and WeatherForecastPresenter (the entity that draws it). The presenter is created with the weather like the renderer, reads the simulation each frame, and draws one banner line at the top centre of the screen in the overlay pass (the chat overlay's channel: the original GAME8AA BF4 font, above every screen including pause menus; [EXT:forecast-banner]). One line, one background rectangle, laid out again only when the text changes; no per-frame GPU growth. The banner belongs to the park's view: while Go Online shows the online globe in the park's place (its globe camera replaces the park's), the banner waits, and the paused park holds its line until the park returns.

What it shows (all of it an OpenTPW extension, [EXT:forecast-wording] and [EXT:forecast-cadence]: the PC has no forecast message, and no weather text exists in the shipped Language string tables, which were searched):

Seeing it: enter any park whose economy runs (an original level; the sandbox has no weather). The weather follows the season's roll, so rain needs the roll to land in the rain or snow band — resume a save made during rain, or wait for the next change (Weather.DaysBetweenChanges, seven days by default). Debug builds also take --debug-weather <quality 1..100> ([EXT:debug-weather], in Client/Game.cs): it applies one quality through ParkWeather's own converter as soon as the park's weather exists, so captures can show rain, snow and bolts deterministically — e.g. --load-original-level jungle --debug-weather 8 --capture-world rain.png --capture-frames 30 (quality 8: rain and lightning on jungle, snow and lightning on hallow). The forecast banner is forced the same way with --debug-forecast <quality 1..100> ([EXT:debug-forecast]), which posts one forecast through the simulation's own warning schedule; the banner draws in the overlay pass, so captures need --capture-interface to include it — e.g. --load-original-level jungle --debug-forecast 8 --capture-interface forecast.png --capture-frames 30. The unit tests (WeatherVisualTests, WeatherForecastTests) cover the state math without a window: counts, the 1024-point field and its scroll, the streak and flake geometry, bolt shape/lifetime/colour, the strike reporting, and the forecast's announcements, countdown, changed lines and seams.

Weather schedule#

The PC weather (tp.exe) runs on game-clock timestamps (0x4f8690, 10^7 units a second, 0x4f8770), not day indices, and OpenTPW's ParkWeather follows it on game seconds sampled at the park turn:

The thing's own rain voice follows its mode (0x5131f0): rain starts a flat, unparameterised cat_ambient 0x21 voice, snow and clear stop it (GameAudio.SetWeatherRain), while the level-driven voice (GameAudio.SetRain, parameter 8) keeps following the drop count ×100/MaxRaindrops in every weather, snow included, until the drops reach 0 (0x512a7f).

Advisor response table#

The game asks the advisor for a response ID; the response table says which speech sample, LIP file, animation and model that is, and whether the clip comes from the global speech bank or the level's (Speech/speechHD.SDT and Speech/lips). The table is shipped as content/data/advisor-responses.toml (610 responses), copied for interoperability from the Mac application (offset 0x18FF4; see the provenance exception in COMPLETION-PLAN.md) and regenerated or checked with tools/ppc-analysis/lanes/advisor/response_table.py <SimTheme Park> --write|--check <file>. Response 0 is the error sound (sample 638, no LIP); responses 1 and 399–402 use the level bank's sp_001. --advisor-response N (with --load-original-level <level>, default jungle) plays a response.

Which response the game asks for, and when, is decided by the advisor controller (scores from Advisor/Advisor.sam, docs/reverse/PPC-advisor.md); that is not implemented yet.

Approximation register#

AUDIO-039 is retired (October 19, 2026): the reverb is the user-approved design choice [EXT:audio-reverb] (see "Reverb").

AUDIO-003 is retired (October 28, 2026): the fixed-pitch flag 0x10000 (0x6bc484) is unreachable. The voice flag word is built from the event word by 0x6bbe90 (SoundVoiceFlags.FromEvent: event 0x8 → 6, 0x4 → 2, 0x200 → 8, 0x20 → 0x200, 0x4000 → 0x20000, a range scale → 0x80) and every other write to it (0x6bbe40, 0x6bc7c0, 0x6bc7fc, 0x6bc9ee, 0x6bca60, 0x6bca79, 0x6bcae0, 0x6bcb0a, 0x6bcc77, 0x6bd5c2, 0x6bd83a, 0x6bd8e3, 0x6bd8ff, 0x6bdab6, 0x6bdb32, 0x6bdf8a, 0x6be044, 0x6be060, 0x6be567, 0x6be5cc, 0x6be891, 0x6bea75, 0x6beaa1) sets or clears one of the bits 0x1-0x80 and 0x100-0x8000 or stores 0; no immediate 0x10000 or 0xFFFEFFFF exists in the library outside the reader and the mixer handle's own flag word (0x6c51d3, 0x6d20d8), and NoEventWordMakesTheFixedPitchVoiceFlag covers all 65,536 event words. Its reverb remainder was the design choice [EXT:audio-reverb], which stays; the pitch draw, the delay, the pool timing and the positioned-only placement were ported before.

AUDIO-900, AUDIO-901, AUDIO-902 and AUDIO-904 are retired (October 27, 2026): the rain parallax factor 0.3 belongs to the camcorder and the ride follow, the only views that set the camera-mode bits 0x16; the flake and the streak are the original's clip vertices from their screen position with the display aspect word; and the bolt ribbon is the original's emitter 0x57DD10 with its mitred joins, projection and quad order ("Weather visuals").

AUDIO-004 is retired. cat_ui 0xBD plays instead of 0x1F when the receiver of message 0x100 has style bit 0x10 (hook 0x485780, the choice at 0x4857cb, called by the dispatcher 0x658d9f and the queue pump 0x658e42 at 0x658eb2). The button class 0x668f9c is the only sender of 0x100 for a mouse release over a button: it posts 0x100 to its parent ([+0x60]) at 0x6691eb through the queue 0x658ccc. Window procedures also send 0x100 to their own window (0x48d83b, 0x49973e, 0x49ec53, 0x4a6df5 (via the dispatcher 0x658d9f), 0x4b640a, 0x4b9f06, 0x4bb020 and 0x4bfc29; ids -1, -2 and 0xe059, on 0x802 or 0x804), and the hook clicks for those too by that window's own style (style 1 in all eight: 0x1F). Those parents are the vertical list scroll bars (type 3, style 0x10: their arrows), the sortable lists (type 7, styles 0x91 and 0x291: their header buttons) and the radio groups (type 8, style 0x11: their toggle tabs). A held arrow waits 500 ms and then steps every 125 ms (ctor 0x6688b3, timer 0x668dd9); the release 0x668eff plays nothing once repeating has started. No list owner adds a row click ("List owners" below); UiScrollList is silent by default and only OpenTPW's own screens opt in.

IDApproximationEvidence needed
AUDIO-018A positioned mono voice follows QMixer.dll's software channel stage, which tp.exe selects for every voice: the request flag 1 is ORed in unconditionally (0x6bc61b, after both the flat and the positioned branch of the sample start 0x6bc410), so 0x6d23ab-0x6d23bb hands QSWaveMixConfigureChannel the mode 0x1000000, whose buffers have no DirectSound 3D object (that is mode 0x2000000, 0x18005056, 0x18005915). The offset to the source is rotated into the listener's basis (the camera matrix rows 0x7909b0 front and 0x7909a0 up through 0x51c1d0; QMixer normalises both, right = up × front, up' = front × right, 0x1800ce70, 0x1800cf10), the azimuth is atan2(x, z) in degrees (0x18009dc0 → 0x1800cb10, fpatan at 0x1800c7b0), the DirectSound pan is 44.444 hundredths of a dB per degree, mirrored behind the listener so it stays within ±4000 (0x18005730), the gain becomes 2000·log10(gain) hundredths of a dB rounded (0x1800ca40; 1 → 0, 0 or less → −10000), and 0x18005830 calls SetVolume (+0x3c) for every wave and SetPan (+0x40) only when the wave format table 0x1803c6b4 says one channel (the test at 0x1800597c-0x1800599f gates the SetPan alone; the table is {0,1,1,1,2,2,2,4,4,4} by format index, with the bits per sample {0,8,16,32,8,16,32,8,16,32} at 0x1803c6dc): the louder channel keeps the level, the other is 10^(−|pan|/2000) of it (at 90° 0.01), so the centre is not 3 dB down (AudioListener.DirectSoundPan, PanGains, Azimuth; the park, free-walk and ride cameras pass their up vector so the pitch counts). The axis mapping is read (October 28, 2026): the driver byte +8 starts as 2 (0x6d6c54-0x6d6c5e) and nothing writes it, so the adapters 0x6d2640 (source), 0x6d2a10 (listener position) and 0x6d2b20 (front and up) hand QMixer (x, z, y); QMixer negates the third component of every vector it receives when its engine byte +4 is set (0x18001020), which it is because tp.exe's QSWaveMixInitEx structure is zeroed (0x6d1f92) and the byte is the inverse of bit 3 of its flags (0x18008661-0x1800866c). The two reflections make the rotation (x, y, z) → (x, z, −y), so the pan keeps the side of the unmapped camera axes (AudioQmixerPlacementTests replays the whole pipeline). The flat voices are read: a voice with voice flag 8 (the event's any-distance flag 0x200, 0x6bbe90: speech, music and most interface sounds, every cat_speechSFX.map event) takes the flat branch of 0x6bc410, which gives it the raw dwords (0, 1, 0) (0x6bc51d, 0x6bb220), no distance mapping and no request flag 0x20, so 0x6b7fd6 reaches 0x6d2640 with its flag clear and QSWaveMixSetPosition (0x6fd2b8) runs; QMixer's message 6 (0x18003e40, handler 0x18007abd) reads three integers (azimuth in degrees, range, elevation), turns the range into 1 × 3.0 / 32767 (the room size 0x180086ef that tp.exe never changes) and the channel takes the polar branch of 0x18009dc0: azimuth 0, elevation 0, distance 9.2e-5, inside the default minimum distance 1 (0x180310f0), so the distance gain is 1 (0x1800a0cf-0x1800a12f) and the pan is 0: both channels at the voice's own gain (AudioVoice.PlacedFlat, set for every event with 0x200 even when it carries a place) Doppler is read (October 28, 2026): every voice without the loop flag (voice flag 4 makes the request flag 0x40 through 0x6bc628 -> 0x6c5110, which 0x6d22d0 turns into the channel's no-Doppler bit 0x10, tested at 0x1800a1df) takes the factor 1 / (1 + x), x = (direction . relative velocity) / 331.36 (the engine's speed-of-sound scales +0x88 and +0x90 are 1.0 from the table 0x180311f0; tp.exe imports QSWaveMixSetSpeedOfSound but its adapter 0x6d2ce0 is never called), at most 10 (0x1800a178-0x1800a2c3), which 0x18005550 multiplies into the stream frequency (an integer, 0x180055c8-0x180055dd) while the voice's first stream reader has its decoder (0x18005599-0x180055bd: +0x90 set, which the library's worker fills through 0x18024620 / 0x18024740) and has not ended (0x1800bd40, the test the pump 0x18007640 uses to end the voice through 0x180077b0): the waves tp.exe opens with OpenWaveEx flag 0x11 (0x180033ad) are callback waves, whose decoder (vtable 0x1802f0c4, refill 0x1801ef10) asks tp.exe's callback 0x6bb4f0 for one block of 0x2400 bytes at a time, so a started voice is assumed ready; the listener velocity is the current minus the previous place (0x6b79d0 -> 0x6d2a10 -> 0x6d27b0, sent because bit 0x40 of the record's flags is clear, which nothing sets: 0x6b9c50 clears the flags and 0x6b9930 sets only 0x800), per changed listener update and without a time base, so it depends on the frame rate; the previous place is the library's own (+8 of the sound system object, zero when the process starts), the update compares place, front and up byte for byte first (0x6b8b60), so a camera that stands still keeps the last velocity, and in a park whose camera does not move after its first frame that is the whole place minus the lobby's (0, 0, -50), which the front end sends every frame (0x54e6f3-0x54e70e); a flat voice sits straight ahead of the listener (AudioListener.DopplerFactor, AudioDopplerTests); OpenTPW sends the lobby listener only from the front-end flow of GameFlow, other scenes without a park (the TPI viewer) do not.The Doppler factor is not applied (AudioListener.DopplerEnabled is off): the gameplay capture of the PC game (v2.0, Dutch) shows no pitch change where this reading predicts one: the advisor's lobby sentence 'Typ eerst je naam in het tekstvenster.' (0:10 and 28:43) and help sentences repeated at 1:37, 30:18 and 80:45 play at the same speed (best resampling scale 1.00 within 0.01, spectrogram correlation 0.78 to 0.90), although the reading gives the first lobby the velocity (0, 0, -50) (a factor of 0.87 for a flat voice), the lobby after a park that velocity minus the park's last place (about 0.6 for a Jungle camera) and a park, until its camera moves, its first place minus the lobby's (about 1.2 at the Jungle start); the reading therefore misses a gate or a reset that keeps the factor at 1 (not found in the channel flags 0x6d22d0, the readiness gate 0x18005599, the speed-of-sound scale 0x18009920, the velocity message 0x180098c0), the sound system is not rebuilt per lobby, park, scene or sentence: its object (the one with the previous place at +8, zeroed by 0x6b7390) is made once by the factory 0x6b9db0 (vtable slot 0x70a2c4) from the sound init 0x51b660, whose only caller is the start-up init 0x54dcf0 (WinMain, 0x45abed; 0x54ddfd), and destroyed once by 0x51b7c0 at exit (0x550439, from 0x5503f0 called at 0x45ac70), so the previous place and velocity live for the whole process and no reset happens before a sentence (ruled out); round 10 ruled out further candidates by reading: a channel's default flag word is 0x101 (the default parameter block 0x180310f0, +0x5c = 0x1803114c), so the no-Doppler bit 0x10 is clear unless tp.exe sets it; the start of a sample builds the word from the node's flag word +0x14 (0x6d2380 -> 0x6d2320 -> 0x6d22d0) and only a loop's 0x40 (0x6c5110) reaches 0x10; every voice recompute (0x18007f70, run by the pump 0x18007640 for a dirty voice) ends by jumping through vtable +0x18 of the voice's attached output (0x18007f99): the software channel class (vtable base 0x1802e2a8: init 0x18004f60 at +4, attach 0x1800c4e0 at +0xc, message handler 0x180051a0 at +0x10) has its update 0x18005830 there, which ends in 0x18005550 (read, round 11; the output the engine hands a voice, 0x18009310 / 0x180092b0 through the managers +0x10c and +0x110, was not followed to its creation), and 0x18009d90 marks every voice dirty on a listener move, 0x18008330 and the pump 0x18007640 recompute them; the listener velocity of every changed update is that update's place minus the previous update's place (0x6b79d0 hands the previous place to 0x6d2a10 every time, and the initial one is zero: 0x6b73b7-0x6b73bd), so an update that only turns the camera zeroes it and a stale velocity lasts only until the next changed update (the lobby's own call repeats one value, so it makes a single update); QMixer's time-based tracker (option bit 8, 0x18009cf4) is not enabled by the listener record (flags 0 or 0x800, 0x6b9930); the request word +0xc has 0xc0 ORed in for every voice without voice flag 0x20000 (0x6bc2af; 0x40 maps to the no-Doppler bit through 0x6d22d0) and 2 ORed in when the sound system's flags 8 and 0x100 (reverb) are both set (0x6b9acb), which passes the test of a second EnableChannel (0x6c5690, +0xc & 0x1a), but that send runs synchronously inside the submission (the record 0x70a580 executes through 0x6b7f00 -> 0x6b8360) before the Play record (0x6c5b20 -> 0x6d2380) whose own EnableChannel replaces the flag word, so it cannot exempt a started voice; its other caller 0x6c5630 (execute of the voice-update record, vtable 0x70a850, built on playing channels at 0x6bbb56, 0x6bbcc3, 0x6bbe16, 0x6bc9c1, 0x6bcc4b, 0x6bccb6, 0x6bd766 and 0x6c3d58) sends nothing either: those builders zero the request and only call setters that write the field mask +0x14 (0x6c5130, 0x6c5170, 0x6c50d0), so +0xc stays 0, 1, 0x20 or 0x820 and the test +0xc & 0x1a fails, 0x40 never reaching 0x10 that way; 0x6c5110 (it stores the loop count at +0x44 and ORs 0x40 into the field mask +0x14 of the block it is called on) has four callers: voice flag 4 at 0x6bc626, 0x6be016 and 0x6c3c3c, and 0x6c6511 in 0x6c64f0, slot +0x14 of the two node classes whose vtables start at 0x70a678 and 0x70aba8 (slots 0x70a68c and 0x70abbc): it first passes its argument to the inner node (virtual +0x48, then that node's slot +0x14) and then, when the dword +0x18 of the argument has bit 0x40, hands the argument this node's own loop count [+0x14] through 0x6c5110, so it copies a loop count into a parameter block and can only give a loop's no-Doppler bit; who writes bit 0x40 into a block's +0x18 was not found (a search of the text for a store of 0x40 into a +0x18 field finds only 0x43767e and 0x537278, outside the audio code), so that route stays unread; the volume chain is ported (round 11, review): the voice's volume index is its percent times the float of each group of its mask (master, music, speech, effects: the service's percent x 0.01f stored by 0x6b98d0; start value 1.0 at 0x70a7dc), formed as floats and rounded to even (0x6bb860, SoundVolume.Index); the driver (0x6d2980) sends nothing for an index below 0 or above 127 and otherwise the 16-bit entry of the table 0x782e40 (258 x index, 32767 for the last entry, SoundVolume.Entry); QMixer's message case 2 (0x180045c0, 0x18007a1c) stores entry x (1/32767f) (100 gives 0.7874) as the volume +0x4c and recomputes the product +0x4c x +0xb8 (distance gain; 1 for a flat or unpositioned voice) x +0xb4 (cone; none) = +0xbc, which 0x1800586b hands to 0x1800ca40 (0 at exactly 1.0, -10000 at 0 or less, else round-half-even of 602.0599913279623 x log2) once, and the result is DirectSound's volume for every wave; only SetPan is gated by the format table (0x1800597c-0x1800599f: mono waves). An event-system voice (every voice the sound event system starts, the chain children and sentence segments included) takes that chain in place of the master and channel gains (the groups are inside the index) and a group volume change re-evaluates the index (0x6b98d0 -> record 0x70a610 -> 0x6c56e2 -> 0x6bb860; OpenTPW evaluates it for each mixed block); the music (sentences of the event system, mask 0x10003; tp.exe 0x51E790 -> 0x51BC40) and the advisor's clip (a cat_speech library event, 100..100 volume, no pitch, mask 0x10005, started by 0x51BFC0 at 0x599339 with the handle stored in 0xF79680; SpeechAudioPlayer plays it at volume 100 as an event voice) take the same chain, so the advisor is about 2.08 dB down like every voice; the speech duck sends trunc(option percent x duck percent / 100) as an integer (0x51BDEE-0x51BE45) and every group float is percent x 0.01f (0x70a280), as built here; a QMixer channel that was never sent a volume holds 10000 / 32767 (0x180310f0 +0x4c = 0x3e9c4139), kept for an event voice whose first index is refused (tested); also open: the advisor clip's group-enable stop (its group goes silent instead of stopping its sample) and its sample and delay draws are not modelled; the stream frequency's rounding to the device's units (0x1800c760); the raised listener of the game pause (docs/AUDIO.md, Pause sound) adds one prediction of the reading to test against the original: the listener's jump of 10000 is the velocity of the next changed update, which for a camera looking down is x <= -1 for a flat voice, so an advisor sentence paused by a game pause and resumed would run at ten times its speed until the camera moved
AUDIO-038Range-stop acknowledgment is traced through 0x6BB7C0 → 0x6C8E50 → 0x6BBE40: it clears sample handle +0x24 and playing state while range bit 0x800 preserves the logical owner. Catalogue loops and finite one-shots release output and recreate the retained selected source on a later rank/newest-admitted tick, preserving the owner serial, parameter state and terminal-stop/fade gates. Held-chain roots suppress new children while excluded; their locally linked, directly ticked children keep playing and are not extra manager-pool entries. A stopped sentence (October 28, 2026): the range stop leaves the placeholder's selected descriptor (+0x0C) alone and the sentence tick 0x6BDF50 starts it again through 0x6BC410, which draws the volume, pitch and delay and makes a new stream (0x6B9AB0, cursor 0), so the segment replays from its beginning and no chooser runs (SoundSentence.TryPlayNext); only the refill 0x6BDE00 (0x6BDF00 → 0x6B9A60) advances the descriptor, when the decoder's read (0x6BB510, chunks of 0x2400 bytes through the double-buffered producer 0x6BB5E0) runs out of the segment's data. A started any-distance voice ranks at the origin: the sample start puts (0, 1, 0) into the placeholder's position (0x6BC51D) and 0x6BB9F0 ranks every voice by the ground distance of that position to the listener (SoundEventSystem.RankPlace). The group enable is ported (October 31, 2026; SoundEventSystem.GroupDisabled, AudioMixer.SetChannelEnabled, AudioGroupEnableTests): the pool tick 0x6BC760 tests the voice's mask byte +0x47 (its category's byte +0x08, the catalogue's group word, SoundEvent.GroupMask: bit 1 master, 2 music, 4 speech, 8 effects) against the sound system's enable bytes +0x44..+0x47 (0x6B9900; all 1 from 0x6B8F32, the master's never written; the sound service sets music, speech and effects from its on-flags 0x803ADC, 0x803AE0 and 0x803AD8 together with the volumes, 0x51BD70), and a voice with a clear byte has its sample stopped (record 0x70A2D0 with the handle at +0x24, which is cleared) and is not run, as an out-of-range voice: back on, the tick starts it through the sample setup (loops, one-shots and sentence segments from their beginning with fresh draws; a chain makes no child meanwhile, and the children it made play out because they are not in the pool). The on-flags are set at the start, by the profile's applier 0x423DD0 (the options screen's OK, leaving a park) and by a loaded save's Sound block (0x51C400); an options toggle sets only its volume (0 while it is off), never the flag (GameAudio.ApplyOnFlags, ApplyOptions). The voice flag 0x4000 that the gate sets on events whose flags have 0x4 or 0x8 only keeps the parameter updates (0x6BBBCB) and the container tick (0x6BCB8D) from running.A sentence stopped inside the decoder's last look-ahead resumes on its successor in the original and replays its whole segment here. The look-ahead is read in its structure: the callback 0x6BB4F0 -> 0x6BB510 hands QMixer's decoder one block of 0x2400 bytes (0x6D6DB0: the request's +0x20, else 0x2400) from a buffer its worker decoded ahead (0x6BB590, virtual +0x1C = 0x6C6300; a result other than 1 marks the segment's data finished, +0x30) and starts decoding the next block; QMixer's decoder (0x1801EF10) asks for the next block when its one block is used up, so the refill 0x6BDE00 that advances the selected descriptor runs one block before the end of the audible data plus the DirectSound lead of QMixer's mixing, which was not read, and OpenTPW has no block model. The successor is chosen when a segment starts ([EXT:sentence-prefetch]). The initial submission's admission is not read to its end (the submit 0x6B7F20 builds the voice and executes the record 0x70A580 at once, 0x6B8360 -> 0x6C5690; whether the first sample start waits for a tick is open). The advisor's clip, which SpeechAudioPlayer starts itself (it takes the event voice's volume chain, but its group goes silent instead of stopping its sample, and it makes no draws and takes no pool slot), and the children a chain makes do not compete. See the bounded contract and synthetic cases.

List owners (October 18 and 19, 2026)#

AUDIO-041 is retired (October 19, 2026): no list row of tp.exe clicks, a still click on a scroll thumb plays nothing, and the keyboard's clicks are mapped to OpenTPW's dialogs. Static evidence only (tp.exe); no runtime capture.

Why a row cannot click. The hook 0x485780 plays 0x1F or 0xBD only for message 0x100 (0x4857b8, the choice at 0x4857cb); no other site plays either id (every 0x51BFC0 call with cat_ui and every caller of the wrapper 0x485AA0 passes another id). The hook runs only in the dispatcher 0x658d9f (0x658dd0) and the queue pump 0x658e42 (0x658eb2), and the queue is filled only by 0x658ccc (0x6697e3 has no other caller). Every message argument of those two senders is an immediate except five that forward or repost a message they received (0x65dd0a adds 0x1000; 0x6651ba, 0x66bc42; 0x4a2c82 and 0x4a3ae0 send 6). So the only 0x100 senders are the button class's release (0x6691eb; the class 0x668f9c is installed only by the type-2 constructor 0x6688b3) and eight window procedures (below). The row path of the type-7 list never reaches them:

OwnerRow routeScope of the conclusion
Load 0x49e880, layout 0x7523f0, list 0x23bce0, type 7/style 0x810x49e901 accepts 0x400, resolves the row, calls load 0x5ac5d0, then closes the rootNo generic or dedicated row-click event. Self-0x100 at 0x49ec53 belongs to the separate Save handler, not Load.
Find Parks 0x4bf9f0, layout 0x758f40, list 0xe05b, type 7/style 0x910x4bfb5a accepts a valid 0x400 row and opens Park Details 0x4c0ae0No generic or dedicated row-click event. Self-0x100 at 0x4bfc29 belongs to search submit 0x802, not the row.
Other Parks 0x4c1a10, layout 0x7593e8, list 0x14beb, type 7/style 0x910x4c1aec accepts a valid 0x400 row and opens Park Details 0x4c0ae0No generic or dedicated row-click event. Other row notifications fall through the saved base procedure.

The immediate Park Details builder populates and focuses the window and posts advisor help (0x4c18dc), without synthesizing 0x100 or playing a UI click. This is not a claim that later loading, networking, advisor speech or gameplay activity is silent, and it is not an original runtime audio capture.

Every owner. The type-7 constructor 0x662562 has one caller, the control factory 0x65dd7b, and no direct factory call asks for type 7: they come from layout records (the stream reader 0x65fd58, 0x65fe40; the text-layout reader 0x66080d hangs off 0x6607ca, which nothing calls). The 66 layout tables the window builders pass (0x65fd0e, 0x47ed80, 0x48cea0) hold 19 type-7 lists in 18 tables; each list's parent is its window, whose procedure is the one the builder installs. A walk of every direct call reachable from each procedure finds no 0x100 send except the two keyboard paths already excluded, and these cat_ui sounds only:

Owner (procedure), list, styleRow messagesSound on the row pathOpenTPW
Load 0x49e880, 0x23bce0, 0x810x400 loadsnone (the load's own sounds are downstream)Load screen, silent
Save 0x49ea30, 0x23bce0, 0x810x400 picks the slotnone; Enter and Escape click (below)no save screen (OpenTPW saves at once)
Find Parks 0x4bf9f0, 0xe05b, 0x910x400 detailsnone; Enter in the search field clicks (below)Find Parks, silent rows
Other Parks 0x4c1a10, 0x14beb, 0x910x400 detailsnoneOther Parks, silent
Visitors 0x493230, 0x1e497, 0x2910x400 visitor window 0x4b79b0, 0x402 locate and close, 0x406 sortnoneVisitorList, silent rows
Overview item lists 0x4955e0, 0x190, 0x291 (three tables)info, locate, sortnoneAttractionList, silent rows
Staff 0x495da0, 0x321, 0x2910x400 employee windownoneStaffList (employee view), silent
Hire 0x49b650, 0x248e, 0x2910x400 hire 0x507bf0, close, help 0x135noneStaffList (applicants); the refusal's error sound is removed
Loans 0x49f4e0, 0x12c4bd, 0x910x400 confirmationnoneLoanList, silent
Buy 0x4ac270, 0x1f8, 0x910x400 buys (0x4ac4f9)0x1D when the money or tickets do not cover the row (0x4ac7f6)BuyItemList, 0x1D on a refused purchase
Upgrades 0x4ae430, 0x1f4d, 0x810x400 buys an add-on (0x4af480)0x1D when the money does not cover an add-on (0x4af5d6)UpgradeList, 0x1D on a refused add-on
Staff dialog 0x4b4fc0, 0x1e7b, 0x91rename, pick-upthe carry tool's own sounds downstreamno counterpart
Postcard addresses 0x4a73d0, 0x26, 0x110x400noneonline extension (EXT)
Unsent postcards 0x4bbc20, 0xee8, 0x110x401noneOutbox, rows not activatable
Visit chat 0x4bd4a0, 0xc3124 0x91 and 0xc312b 0x1no row handlernone (its 0x95 at 0x4a9380 is a key command)ChatPanel lists, silent
Dial-up chooser 0x4ba530, 0xc, 0x1none readnoneno dial-up
IME candidates 0x480d10 → 0x4809f0, 0x7b79e3, 0x810x400 picks the candidate (ImmNotifyIME)noneno counterpart

The other control types (0x65ab64, 0x665fcd, 0x66d9e0, 0x66a1e8, 0x66d750, 0x66d0c0, 0x66c970, 0x66a4c0, 0x66c7e0) do not derive from the button constructor and send no 0x100, and the row templates that draw rows (0x4938c0, 0x4944d0, 0x496cbd, 0x4b4c70) build types 1, 6 and 9 only, so no custom row class can click. The 0x1D refusals are downstream domain feedback, which OpenTPW already plays.

The scroll thumb. The thumb (b_scroller, layout op 8: type 2, style 1, id 3) gets the procedure 0x66bb9b (0x65e526 overwrites the button procedure at +0x114); its press (0x10005) captures, its release (0x10004) sends 0x802 to the slider (0x66b9ef) and returns, so the button class never sees it and no 0x100 is posted. The slider (0x66ba22) has no 0x802 case and the base 0x65f6d1 forwards nothing.

The keyboard. A text field's key handler 0x667fee sends its window 0x802 for Enter (unless the field has style 0x80), 0x803 for Tab, 0x804 for Escape and 0x806 for other keys; nothing else emits 0x802 except the slider thumb above. Park shortcuts call their commands directly (no 0x100), and the list key helper 0x665b51 (style 0x200 only) moves the selection with Home, End and the arrows, never activating a row. The eight self-senders, all on windows of style 1, so 0x1F:

Window (procedure)EnterEscapeOpenTPW
Gate rename 0x48d640 (table 0x750090) and park rename 0x4993e0 (0x751928)first line: focus moves to the second, no click; second line: 0x100 -1, 0x1F, applycloses, no clickOpenParkRenameDialog: the second line's Enter is the tick
Save 0x49ea300x100 -1, 0x1F0x100 -2, 0x1Fno save screen
New player name 0x4a6d00 (0x753f50)0x100 -1 at once (0x4a6df5), 0x1Fcloses, no clickGame Mode: Enter is the tick, as before
Employee rename 0x4b6320 (0x7572e8)0x100 -1, 0x1F, applycloses, no clickOpenEmployeeRenameDialog: Enter is the tick
Dial-up details 0x4b9d00 (0x7583e8) and online login 0x4baf10 (0x7585a8)in field 0x49: focus to 0x4b; else 0x100 -1, 0x1Fcloses, no clickno dial-up; the online login is OpenTPW's own (EXT)
Find Parks 0x4bf9f00x100 0xe059 unless that button is held, 0x1F, searchnot readFind Parks: Enter is the search button

The shop window's price field and the other OpenTPW fields with no listed window send no 0x100 in the original, and OpenTPW's Enter there plays nothing. OpenTPW's host keyboard focus (Enter on a focused button, Enter on a focused list) has no original input ([EXT:ui-key-navigation]): a focused button plays its own click, a list row stays silent.

OpenTPW. UiScrollList is silent by default (ClicksOnActivate); the Theme Park Inc text HUD ([EXT:tpi-text-hud]) and the Extensions and mods screen ([EXT:mods]) opt in, having no original screen. The hire refusal keeps its message and loses the error sound the original never plays there. ListOwnerAudioTests checks the default, the opt-ins, the Load, Find Parks and Other Parks rows, the Enter paths of Find Parks, the employee rename and the park rename, Escape, the hire refusal and a still thumb click, with generated, distinguishable 0x1F/0xBD samples.

Register round 2 (October 14)#

The second static round over tp.exe (the PC executable counts as original evidence) retired, narrowed or reclassified these items; the register above keeps only what is still open, and the code carries the evidence as [BIN:TPW-EXE:...] notes.

The option volumes are percentages (0–100) like the original's {on, percent} pairs, with the DefaultVolume.* defaults of sound.sam (effects 75, music 60, speech 75, movie 100; the globals holding them are medium confidence). Options files from before the change (0–10 steps) are migrated ×10 on load. Only the slider step granularity within 0–100 is 1 (tp.exe 0x66b47d, 0x66ad77).

Selected SDT entry to WAV (desktop)#

--export-sdt-wav <local.sdt> <1-based entry number> <new.wav> exports one explicit entry through the existing CPU SoundBank and Mp2Decoder, before game assets, window or profile setup. Entry numbering follows the original bank offset table; damaged earlier entries do not shift the selection. The decoder's interleaved signed 16-bit samples, sample rate and mono/stereo channel count are written with the already-pinned NAudio WAV writer, without resampling, gain, mixing or float conversion. Container sample-rate hints and the unqualified raw sample field are not used as a duration or PCM-size oracle.

Supported payloads are MPEG-1/2 Layer I and MPEG-1/2 Layer II (MPEG-1 joint included) as implemented by the existing decoder (MPEG1-LAYER2-VERIFICATION.md records the synthetic MPEG-1 addition). Layer III, MPEG-2.5, free format and MPEG-2 Layer II joint stereo remains unsupported; raw WAV/NONE payloads are not treated as MPEG. There is no event/category lookup, weighted variant selection, sentence or loop flattening, playback, or audio/LIP timing export. This exports current decoded samples and does not qualify original audio or native playback semantics.

The export-only policy refuses missing/damaged entries, zero complete frames, failed CRCs and unconsumed MPEG tails other than the known single zero SDT pad. The existing 16 MiB decoder input bound is checked before allocating the selected payload through the caller-limited GetMpeg overload. Runtime synchronous and cooperative sample decodes now pass the same existing bound before payload reads; oversized entries retain the decoder's null/trace/failed-cache behavior without allocating the refused payload. Bank loading remains outside the content-error catch; source-length I/O errors and scheduler cancellation still propagate. The default unrestricted GetMpeg API and codec/playback/loop ownership remain unchanged. RuntimeSoundInputPreflightTests exercises sparse synthetic oversized records, the exact boundary, valid PCM/cache, changed-source and cancellation controls; original assets and native/device timing were not exercised. No new codec or arbitrary valid-output memory or storage-quota guarantee is claimed. Large valid decoded clips still require the existing decoder's complete PCM buffer.

Decode and validation finish before output directories or files are created. An existing output file is refused. WAV header finalization completes on an owned CreateNew temporary file before Flush(true) and a non-overwriting move; failure removes only that owned temporary. The operation does not overwrite the input, an existing target or unrelated temporary files. Synthetic bank/decode/WAV readback and actual CLI controls cover sample identity, rate/channels, stable selection, damaged/truncated and unsupported input, early payload bounds and output integrity. Original assets, devices, GPU/browser execution and native audio parity are unqualified. This desktop-only helper is excluded from the browser compile; the shared reader and decoder remain available there.

Runtime size preflight preserves the source-error boundary. The additive SoundBank.GetMpeg(number, maximumBytes, out rejectedPayloadBytes) reports only a validated oversized payload as null plus a positive size, before allocation. Zero means no size refusal (including missing/damaged entries); source open/read exceptions still propagate. Existing bounded/unbounded wrappers keep their old return behavior and oversized InvalidDataException message. Metadata is read once; the existing per-read captured-bank-length checks remain in force.

Both runtime decode paths perform the typed bank read outside the codec catch. Only the explicit positive size refusal joins the existing logged-null/cache path; source InvalidDataException, NotSupportedException, IOException and cancellation remain retryable. Tests pin real source-factory propagation/retry, worker/cooperative bounds, exact-limit reads, valid PCM/cache/Forget, cancellation and public wrapper compatibility. This correction changes no decoder limit, format, ownership, playback or original/native qualification.

Independent corrected-group controls also preserve the exact source exception instance when its message mimics an oversized-entry refusal, at either metadata or payload open, across synchronous, worker and cooperative decoding. A changed source length refuses before reporting size; Forget clears cached size refusals and retired categories do not retain them again. These are synthetic CPU tests.

Retired in the audio, advisor and effects sweep (2026-10-16): APPROX:AUDIO-008 (the repair band is the script's variable slot 5), APPROX:AUDIO-025 (December's average is the Seasons array's count slot) and APPROX:AUDIO-903 (CRain's dt zeroing); AUDIO-037 is [EXT:sound-chooser-seed].

Coaster train loops#

Each coaster train holds two loops of the ride's EventMap (variables 0 and 1, level cat_rides, started at the slot setup 0x4392A0 at the train's sound car, the car ReferenceCar; CoasterTrainSounds). The variables 5 to 8 are read into the train at the setup: 6 is the parameter code of the speed crossfade, 7 the code of the state parameter and 8 the code of the occupancy (Jungle: 20, 19, 22). After each station step (0x439570) the first loop is given the train's speed in percent of fMaxSpeedAtMaxSetting and the second the rest to 100, both then move to the sound car (the first car while the player rides the train, 0x42A4E0), each coordinate truncated. At the end of each motion tick (0x43D7D8, 0x439780) the train's state goes to the second loop: braking (flag 0x10) is state 8 with 50 or 100 by x⁴ of the last braking hop, a car on a winch with the power on is state 2 (speed up to 0.3 of the speed cap) or 4 with 100 x cars on winch / cars per train, anything else is state 0x10 with 100; a state that differs from the slot's sends 0xF, 0x1E, 0x46, 0x5A or 0x32 (states 1, 2, 4, 8, 0x10) on the state code and is stored in the slot (it outlives the train, and a loaded slot keeps the saved word), and every call sends the occupancy value on the occupancy code. Setting a slot up ends the old loops first (0x439670) and gives the new second loop the state parameter only when the slot's state differs from 2, which the rating pass and the state change 1 to 2 make visible. The sounds are in no hash and no save; a loaded train has none until its next setup. The trains' scream pass (0x4393E0, handles +0x6C and +0x70) is ported with the rest: with riders, sample flag 0x2 (the rating's terror flag) starts the band-1 one-shot at level 100 (on every pass of a train that does not hold the scream flag; once it does, a live voice is moved and a voice that ended is started again) and sample flag 0x4 (the normal flag) holds a scream chain of band riders / 2 + 1 at level 75, moved with the train and stopped on the first sample without the flag; both are silent while the train brakes or the ride is in mode 64. Positions of the loops and screams are rounded to nearest even (fistp), not truncated.

Source: docs/AUDIO.md in the project repository.