Difference between revisions of "love.audio.setPosition"

(only mono sources)
(Removed inaccurate remark about WAV files being imported as stereo and not working correctly.)
 
Line 11: Line 11:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
== Remarks ==
 
Setting a position only works for mono sources.
 
WAV files are always loaded as stereo, OGG works fine.
 
 
== See Also ==
 
== See Also ==
 
* [[parent::love.audio]]
 
* [[parent::love.audio]]

Latest revision as of 20:57, 18 December 2018

Sets the position of the listener, which determines how sounds play.

Function

Synopsis

love.audio.setPosition( x, y, z )

Arguments

number x
The x position of the listener.
number y
The y position of the listener.
number z
The z position of the listener.

Returns

Nothing.

See Also


Other Languages