Sound::SetListener
function · sound · host
- Address
0x7a5eb0· 159 bytes, up to0x7a5f4e- Meaning
- Maps and passes the listener's position, velocity, forward and up vectors to FMOD
- Confidence
- verified, proof one
- Finding
- sound/engine#positions-and-the-listener
- Test
sound::listener_3d_attrs
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 1
- _FSOUND_3D_Listener_SetAttributes@32 unassigned
Calls and jumps by a bare address, from tables/calls.tsv.