Skip to content

@modoki/engine / index / updateAudioListener

Function: updateAudioListener() ​

updateAudioListener(x, y, z): void

Position the listener (spatial audio). Orientation defaults to -Z forward / +Y up in Phase 1 — position drives the audible distance attenuation.

Parameters ​

x ​

number

y ​

number

z ​

number

Returns ​

void

Built with Modoki.