benilla-re systems structs docs

PlaySoundKept

function · sound · orchestration

Address
0x458a40 · 15 bytes, up to 0x458a4e
Meaning
Plays a sound id on bus 0 and keeps its record, optionally with no category
Confidence
verified, proof one
Finding
sound/entries#playing-by-id

Finding: Playing by id in sound: sound entries and plays

InternalPlaySound(keep, noCategory, bus, id, index, music) looks the definition up, picks a file, and opens it held with Sound::Play2D and flags: the definition's duplicate bit (flag 0x20 of the row), 0x4 for keep, 0x10 for noCategory, 0x2 for music. It then sets the play volume and pitch and unpauses; a failed start destroys the sound. It returns the sound or null. SndInterfacePlaySound(id) is bus 0 with nothing set and returns whether it played. 0x458a40(id, noCategory) keeps the sound; the cinematic camera's narration passes noCategory 1.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.