benilla-re systems structs docs

InternalPlaySound

function · sound · primitive

Address
0x45ce60 · 152 bytes, up to 0x45cef7
Meaning
Opens a sound id held on a bus with its flags, sets volume and pitch and unpauses it
Confidence
verified, proof one
Name from
the community database (idb)
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 4

Callees 7

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