GetSoundLength: Difference between revisions
Jump to navigation
Jump to search
Cazomino05 (talk | contribs) m (fixed typo) |
(getSoundLength returns a float in seconds, not int + ms) |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">float getSoundLength ( element theSound )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
Line 10: | Line 10: | ||
===Returns=== | ===Returns=== | ||
Returns an [[ | Returns an [[float]] value indicating the playback length of the [[sound]] element in seconds. | ||
==Example== | ==Example== |
Revision as of 20:18, 28 August 2012
This function is used to return the playback length of the specified sound element.
Syntax
float getSoundLength ( element theSound )
Required Arguments
- theSound: The sound element which length you want to return.
Returns
Returns an float value indicating the playback length of the sound element in seconds.
Example
TODO
Click to collapse [-]
Client--TODO
See Also
- 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