Difference between revisions of "love.audio.setPosition"
(Added a lot more information on the parameters.) |
(Removed my additions to the y and z properties because I can't confirm what I said (nor what I think they do).) |
||
Line 6: | Line 6: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|number|x|The x position of the listener. This sets where sound occurs on the user's speakers. If you want to select either speaker, a value of 1 to -1 will do. If the value is 1 it will play on the left, if 0 the sound will be centered, if -1, the sound will play on the right. If it is over or under these values, the sound will get softer.}} | + | {{param|number|x|The x position of the listener. This sets where sound occurs on the user's speakers in a left to right orientation. If you want to select either speaker, a value of 1 to -1 will do. If the value is 1 it will play on the left, if 0 the sound will be centered, if -1, the sound will play on the right. If it is over or under these values, the sound will get softer.}} |
− | {{param|number|y|The y position of the listener | + | {{param|number|y|The y position of the listener.}} |
− | {{param|number|z|The z position of the listener | + | {{param|number|z|The z position of the listener.}} |
=== Returns === | === Returns === | ||
Nothing. | Nothing. |
Revision as of 09:51, 3 February 2011
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. This sets where sound occurs on the user's speakers in a left to right orientation. If you want to select either speaker, a value of 1 to -1 will do. If the value is 1 it will play on the left, if 0 the sound will be centered, if -1, the sound will play on the right. If it is over or under these values, the sound will get softer.
number y
- The y position of the listener.
number z
- The z position of the listener.
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info