GetSoundPan
From Multi Theft Auto: Wiki
This function is used to get the pan level of the specified sound element.
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, 0.3) outputChatBox("Current pan is " .. getSoundPan(song)) end addCommandHandler("music", playMusic)
See Also
- getSoundBufferLength
- getSoundEffects
- getSoundFFTData
- getSoundLength
- getSoundLevelData
- getSoundMaxDistance
- getSoundMetaTags
- getSoundMinDistance
- getSoundPan
- getSoundPosition
- getSoundProperties
- getSoundSpeed
- getSoundVolume
- getSoundWaveData
- isSoundPanningEnabled
- isSoundPaused
- playSFX
- playSFX3D
- playSound
- playSound3D
- playSoundFrontEnd
- setRadioChannel
- setSoundEffectEnabled
- setSoundMaxDistance
- setSoundMinDistance
- setSoundPan
- setSoundPanningEnabled
- setSoundPaused
- setSoundPosition
- setSoundProperties
- setSoundSpeed
- setSoundVolume
- stopSound