benilla-re systems structs docs

NearestEmitterSlot

function · sound · primitive

Address
0x461ca0 · 128 bytes, up to 0x461d1f
Meaning
Returns the used slot nearest the listener, the first of equals
Confidence
verified, proof one
Finding
sound/ambience#emitter-pump
Test
sound::nearest_active_point

Finding: Emitter pump in sound: ambience and reverb

Each frame the pump walks the 32 entries in index order. Once four are sounding it fades every later entry's sound over 3.0 s. Otherwise it serves the entry: its nearest used position to the listener is chosen; a silent entry opens its sound as a 3D loop there (an open that fails disables the id); a sounding entry moves to the nearest position when that changes. An entry counts as sounding while its sound plays and is not cut off by distance.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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