PlaySoundLoop2D
function · sound · primitive
- Address
0x458900· 143 bytes, up to0x45898e- Meaning
- Opens a sound id as a 2D loop on bus 0 with the ambience and no-category flags
- Confidence
- verified, proof one
- Finding
- sound/entries#looped-plays
Finding: Looped plays in sound: sound entries and plays
0x458900(id, ambience, noCategory) opens a definition's file as a 2D loop on bus 0, with flag 0x8
for ambience and 0x10 for noCategory, sets the volume and pitch, and unpauses. 0x4588f0 is the
ambience form; 0x458990 is the cinematic sequence's sound. 0x4589a0(id, pos) opens a 3D loop at a
position. 0x458ab0(object, id, seconds, index) opens a 3D loop at the object, fades it in from 0 to
level 255 over seconds, and makes it follow the object; the fade ends at volume 1.0 whatever the
definition says. The dynamic object code passes 2.0 s.
The derivation is in the doc.
Callers 2
- PlayAmbienceLoop sound
- PlaySoundLoop2DNoCategoryClear sound
Callees 7
- ApplySoundDefVolumePitch sound
- GetSoundDefDupeFlag sound
- PickSoundDefFile sound
- GetSoundDefinition sound
- Sound::Play2DLooped sound
- Sound::Stop sound
- Sound::SetPaused sound
Calls and jumps by a bare address, from tables/calls.tsv.