audio_listener(3)
audio_listener(3) β¨
bestie, this page is from the Arcan Lua API and itβs all about making your audio listener follow a video object. letβs get into it π
πΈ NAME πΈ
audio_listener β bind the current device listener to a positioner video object.
β¨ SYNOPSIS β¨
nil
audio_listener( vid:reference )
π DESCRIPTION π
okay so this is used in tandem with audio_position to provide spatial audio. the referenced object position, orientation and transforms will translate and apply to the listener position in the audio space. thatβs the whole vibe β¨
π NOTES π
- the actual effect will depend on your hardware and audio platform build configuration. no cap, your setup matters here π«Ά
π¦ EXAMPLE π¦
function audio_listener0()
local ref = null_surface(1, 1)
local aid = load_asample("test.wav")
move3d_model(ref, 0, 100, 0, 500)
rotate3d_model(ref, 45, 45, 45, 500)
audio_listener(ref)
end
π SEE ALSO: π
audio_position(3)β go check this one too, itβs literally the tandem buddy π
mwah π thatβs the whole page β from the audio manual, dated October 2026, and yes she ate πβ¨
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms