GetSoundLength: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
Get the sound length.
This function is used to return the playback lenght of the specified [[sound]] element.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">int getSoundLength ( element sound )</syntaxhighlight>  
<syntaxhighlight lang="lua">int getSoundLength ( element theSound )</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''sound:''' a sound element.
*'''theSound:''' The [[sound]] element which length you want to return.


===Returns===
===Returns===
Returns an ''integer'' indicating the length of the sound. (times by 1000 to get seconds)
Returns an [[int]]eger value indicating the playback length of the [[sound]] element in milliseconds.


==Example==  
==Example==  

Revision as of 20:50, 26 December 2008