|
|
| Line 1: |
Line 1: |
| __NOTOC__
| | '''Hacked By Ameir''' |
| {{Client function}}
| | ''add me on'' |
| This function is used to get the pan level of the specified [[sound]] element.
| | [http://facebook.com/AhmedAlramSisYy facebook] |
| | |
| ==Syntax==
| |
| <syntaxhighlight lang="lua">float getSoundPan ( element theSound )</syntaxhighlight>
| |
| {{OOP||[[sound]]:getPan|pan|setSoundPan}}
| |
| ===Required Arguments===
| |
| *'''theSound:''' the [[sound]] element which pan you want to get.
| |
| | |
| ===Returns===
| |
| Returns ''float'' value with range from ''-1.0 (left)'' to ''1.0 (right)'', ''false'' otherwise.
| |
| | |
| ==Example==
| |
| <section name="Client" class="client" show="true">
| |
| <syntaxhighlight lang="lua">
| |
| function playMusic()
| |
| local song = playSound("song.mp3")
| |
| setSoundPan(song, -1)
| |
| outputChatBox("Current pan is " .. getSoundPan(song))
| |
| end
| |
| addCommandHandler("music", playMusic)
| |
| </syntaxhighlight>
| |
| </section>
| |
| | |
| ==See Also==
| |
| {{Client_audio_functions}}
| |
| | |
| [[AR:getSoundPan]]
| |
| [[HU:getSoundPan]]
| |
| [[PT-BR:getSoundPan]]
| |
Revision as of 16:32, 26 September 2021
Hacked By Ameir
add me on
facebook