audSetListenerPosition

Sets the 3D position of the audio listener. Takes x/y/z (listener position coordinates). Returns nothing.

Audio

Parameters & Returns

Parameters

x Double
y Double
z Double

Returns

Void

Quick Summary

Sets the 3D position of the audio listener. Takes x/y/z (listener position coordinates). Returns nothing.

Technical Exegesis...

Sets the position of the listener in 3D space at coordinates (x, y, z). The listener position is used to calculate volume and panning for all 3D audio sources.

Automatically initializes the audio engine on first use. All 3D sounds and music are positioned relative to the listener. Typically, you would update the listener position each frame to match the player's camera or character position.

Example

Example.bam
audSetListenerPosition(playerX, playerY, 0.0)