benilla-re systems structs docs

s_soundPositionCallback

global · sound

Address
0xcf55fc · 4 bytes, up to 0xcf55ff
Type
void *
Meaning
Holds the object position callback, null when none
Confidence
verified, proof one
Finding
sound/engine#sounds-that-follow-objects

Finding: Sounds that follow objects in sound: the engine

Sound::Set3DUpdateHandle(guid) puts a 3D sound on the object list with a GUID, or takes it off for GUID 0. Each frame, when a position callback is installed, the pump asks it for the position of each listed sound's GUID and, on success, stores it and calls FSOUND_3D_SetAttributes with no velocity. The interface installs and removes the callback (entries#playing-at-a-position).

The derivation is in the doc.