RO/getSoundPan
Jump to navigation
Jump to search
Această funcție este utilizată pentru a obține nivelul de panoramare al elementului sound specificat.
Sintaxă
float getSoundPan ( element theSound )
OOP Syntax Help! I don't understand this!
- Method: sound:getPan(...)
- Variable: .pan
- Counterpart: setSoundPan
Argumente necesare
- 'theSound:' elementul sound pe care doriți să îl obțineți.
Returnează
Returnează valoarea float cu intervalul de la -1,0 (stânga) la 1,0 (dreapta), altfel false.
Exemplu
Click to collapse [-]
Clientfunction playMusic() local song = playSound("song.mp3") setSoundPan(song, -1) outputChatBox("Current pan is " .. getSoundPan(song)) end addCommandHandler("music", playMusic)
Vezi și
- getRadioChannel
- getRadioChannelName
- getSFXStatus
- getSoundBPM
- getSoundBufferLength
- getSoundEffectParameters
- getSoundEffects
- getSoundFFTData
- getSoundLength
- getSoundLevelData
- getSoundMaxDistance
- getSoundMetaTags
- getSoundMinDistance
- getSoundPan
- getSoundPosition
- getSoundProperties
- getSoundSpeed
- getSoundVolume
- getSoundWaveData
- isSoundLooped
- isSoundPanningEnabled
- isSoundPaused
- playSFX3D
- playSFX
- playSound3D
- playSound
- setRadioChannel
- setSoundEffectEnabled
- setSoundEffectParameter
- setSoundLooped
- setSoundMaxDistance
- setSoundMinDistance
- setSoundPan
- setSoundPanningEnabled
- setSoundPaused
- setSoundPosition
- setSoundProperties
- setSoundSpeed
- setSoundVolume
- stopSound
- Shared
- playSoundFrontEnd