getSoundPan
Client-side
 Server-side
 Shared
 Pair: setSoundPan
This function is used to get the pan level of the specified sound element.
OOP Syntax Help! I don't understand this!
- Method: sound:getPan(...)
- Variable: .pan
Syntax
float|false getSoundPan ( sound/player theSound )Required Arguments
- theSound: The sound element which pan you want to get.
Returns
- float|false: pan
Returns float value with range from -1.0 (left) to 1.0 (right), false otherwise.
Code Examples
 client   
 local function playMusic()    local song = playSound("song.mp3")    setSoundPan(song, -1)    outputChatBox("Current pan is " .. getSoundPan(song))endaddCommandHandler("music", playMusic)See Also
Audio Functions
- getRadioChannel
- getRadioChannelName
- getSFXStatus
- getSoundBPM
- getSoundEffectParameters
- getSoundBufferLength
- getSoundEffects
- getSoundFFTData
- getSoundLevelData
- getSoundLength
- getSoundMaxDistance
- getSoundMinDistance
- getSoundMetaTags
- getSoundPan
- getSoundPosition
- getSoundProperties
- getSoundSpeed
- getSoundVolume
- getSoundWaveData
- isSoundLooped
- isSoundPanningEnabled
- isSoundPaused
- playSFX
- playSFX3D
- playSound
- playSound3D
- setRadioChannel
- setSoundEffectEnabled
- setSoundEffectParameter
- setSoundLooped
- setSoundMaxDistance
- setSoundMinDistance
- setSoundPan
- setSoundPanningEnabled
- setSoundPosition
- setSoundProperties
- setSoundPaused
- setSoundSpeed
- setSoundVolume
- stopSound
 
 