benilla-re systems structs docs

PlaySoundAtArgs

function · sound · orchestration

Address
0x458870 · 27 bytes, up to 0x45888a
Meaning
Plays a sound id at a position on bus 0
Confidence
verified, proof one
Finding
sound/entries#playing-at-a-position
Test
sound::sound_emit_pos_z2

Finding: Playing at a position in sound: sound entries and plays

0x45cf00(culled, keep, noCategory, bus, id, pos, index, m) refuses a position at or beyond the definition's cutoff from the listener, setting *culled. Otherwise it opens the file with Sound::Play3D, sets the play volume, the position, the cutoff and the distances (the definition's minimum, maximum 100000.0), unpauses, and sets the channel reverb. 0x458890 and 0x45cfe0, the same function in two files, return 1 when it plays or is culled and 0 when it fails. 0x458870(id, pos, index, m) is bus 0; 0x4588d0 bus 2; 0x458f90 and 0x459230 keep the sound.

The derivation is in the doc.

Callers 20

Callees 1

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