audio_position(3)
π audio_position(3) β the Arcan Lua API glow-up π
okay so bestie, welcome to audio_position(3) from the Arcan Lua API β yes the manual name is right there, i gotchu π«Ά
β¨ NAME β¨
audio_position β binds an audio source to a positioner video object. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
nil
audio_position( aid:source, vid:reference )
so it returns nil (no cap, nothing comes back), and you call it with an aid:source plus a vid:reference π
β¨ DESCRIPTION β¨
okay so here's the tea β β this function sets up a binding between an audio source and a video object, and that video object is the one that gets used to derive world-space position and orientation. literally the whole point.
and the iconic part? any transforms on that reference object will translate straight into repositioning the audio source too. move the video thing, the sound follows. slay β¨π¦
β¨ NOTES β¨
- binding to
WORLDIDwill return the object to0,0,0β like, home base, back to the origin, periodt π - referencing a bad audio source or a bad video reference is a terminal state transition π so likeβ¦ don't do that. fr fr, that one's serious.
β¨ SEE ALSO β¨
audio_listener(3)β go read that one too, bestie π
and that's the page!! brought to you by the audio section, October 2026 edition πΈ mwah, go position some audio responsibly ππ
π¦ 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