IsWithinListenerDistance
function · sound · primitive
- Address
0x45cdf0· 109 bytes, up to0x45ce5c- Meaning
- Returns whether a position lies strictly within a distance of the listener
- Confidence
- verified, proof one
- Finding
- sound/entries#playing-at-a-position
- Test
sound::sound_audible_distance
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 1
- InternalPlaySoundAt sound
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.