benilla-re systems structs docs

Sound::SetMinMaxDistance

function · sound · host

Address
0x7a5e80 · 47 bytes, up to 0x7a5eae
Meaning
Sets the minimum and maximum distance of a 3D sound's sample
Confidence
verified, proof one
Finding
sound/engine#positions-and-the-listener

Finding: Positions and the listener in sound: the engine

The engine maps a world vector (x, y, z) to FMOD as (−y, z, x). Sound::SetPosition(pos, vel) stores both for a 3D sound and, with a live channel, calls FSOUND_3D_SetAttributes(ch, pos, vel or NULL). 0x7a5eb0(pos, vel, forward, up) calls FSOUND_3D_Listener_SetAttributes with all four mapped and a null velocity passed as NULL; 0x7a5f50 reads the listener position back as (z, −x, y) of FMOD's. 0x7a5e80(min, max) sets FSOUND_Sample_SetMinMaxDistance on the stream's sample for a 3D sound, 0x7a5e40 the frequency, 0x7a5bf0(props) FSOUND_Reverb_SetChannelProperties for a 3D sound with a channel and non-null properties, and 0x7a5fa0(props) FSOUND_Reverb_SetProperties.

The derivation is in the doc.

Callers 1

Callees 2

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