InternalPlaySound
function · sound · primitive
- Address
0x45ce60· 152 bytes, up to0x45cef7- 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
- SndInterfacePlayVocalUISound sound
- SndInterfacePlaySound sound
- PlaySoundKept sound
- PlayServerMusic sound
Callees 7
- ApplySoundDefVolumePitch sound
- GetSoundDefDupeFlag sound
- PickSoundDefFile sound
- GetSoundDefinition sound
- Sound::Play2D sound
- Sound::Stop sound
- Sound::SetPaused sound
Calls and jumps by a bare address, from tables/calls.tsv.