HU/getSoundPan: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function hu}} This function is used to get the pan level of the specified sound element. ==Syntax== <syntaxhighlight lang="lua">float getSoundPan ( e...") |
mNo edit summary |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function hu}} | {{Client function hu}} | ||
Ez a funkció a meghatározott [[sound|hangelem]] panszintjének eléréséhez használható. | |||
==Syntax== | ==Syntax== | ||
Line 17: | Line 17: | ||
function playMusic () | function playMusic () | ||
local song = playSound('song.mp3') | local song = playSound('song.mp3') | ||
setSoundPan(song, | setSoundPan(song, -1) | ||
outputChatBox("Current pan is "..tostring(getSoundPan(song))) | outputChatBox("Current pan is "..tostring(getSoundPan(song))) | ||
end | end | ||
Line 25: | Line 25: | ||
</section> | </section> | ||
== | ==Lásd még== | ||
{{Client_audio_functions hu}} | {{Client_audio_functions hu}} | ||
[[ | [[en:getSoundPan]] | ||
[[pt-br:getSoundPan]] | |||
==Fordította== | |||
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]''''' |
Latest revision as of 22:23, 17 August 2021
Ez a funkció a meghatározott hangelem panszintjének eléréséhez használható.
Syntax
float getSoundPan ( element theSound )
OOP Syntax Help! I don't understand this!
- Method: sound:getPan(...)
- Variable: .pan
- Counterpart: 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
Click to collapse [-]
Clientfunction playMusic () local song = playSound('song.mp3') setSoundPan(song, -1) outputChatBox("Current pan is "..tostring(getSoundPan(song))) end addCommandHandler("music", playMusic)
Lásd még
- HU/getRadioChannel
- HU/getRadioChannelName
- HU/getSFXStatus
- HU/getSoundBPM
- HU/getSoundEffects
- HU/getSoundFFTData
- HU/getSoundLength
- HU/getSoundLevelData
- HU/getSoundMaxDistance
- HU/getSoundMetaTags
- HU/getSoundMinDistance
- HU/getSoundPan
- HU/getSoundPosition
- HU/getSoundProperties
- HU/getSoundSpeed
- HU/getSoundVolume
- HU/getSoundWaveData
- HU/isSoundPanningEnabled
- HU/isSoundPaused
- HU/playSFX
- HU/playSFX3D
- HU/playSound
- HU/playSound3D
- HU/playSoundFrontEnd
- HU/setRadioChannel
- HU/setSoundEffectEnabled
- HU/setSoundMaxDistance
- HU/setSoundMinDistance
- HU/setSoundPan
- HU/setSoundPanningEnabled
- HU/setSoundPaused
- HU/setSoundPosition
- HU/setSoundProperties
- HU/setSoundSpeed
- HU/setSoundVolume
- HU/stopSound