benilla-re systems structs docs

GetSoundDefDupeFlag

function · sound · primitive

Address
0x458f40 · 11 bytes, up to 0x458f4a
Meaning
Returns bit 5 of a definition's flags, the duplicate check
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 5

Callees 0

None by a direct call or jump.

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