love.audio.setPosition

love.audio.setPosition

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.

Remarks

Setting a position only works for mono sources. WAV files are always loaded as stereo, OGG works fine.

See Also


doc_love
2017-03-21 15:45:47
Comments
Leave a Comment

Please login to continue.