SetSoundPosition: 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}}
Sets custom sound seek position.
This function is used to change the seek position of the specified [[sound]] element.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">bool setSoundPosition ( element sound, int pos )</syntaxhighlight>  
<syntaxhighlight lang="lua">bool setSoundPosition ( element theSound, int pos )</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''sound:''' the element of the sound you want to play.
*'''theSound:''' The [[sound]] element which seek position you want to modify.
*'''pos:''' An integet number representing the position you wish to seek to.
*'''pos:''' An [[int]]eger value representing the new seek position of the sound in milliseconds.


===Returns===
===Returns===
Returns ''true'' if the sound position was successfully moved, ''false'' otherwise.
Returns ''true'' if the [[sound]] element's seek position was successfully changed, ''false'' otherwise.


==Example==  
==Example==  

Revision as of 20:49, 26 December 2008

This function is used to change the seek position of the specified sound element.

Syntax

bool setSoundPosition ( element theSound, int pos )

Required Arguments

  • theSound: The sound element which seek position you want to modify.
  • pos: An integer value representing the new seek position of the sound in milliseconds.

Returns

Returns true if the sound element's seek position was successfully changed, false otherwise.

Example

TODO

Click to collapse [-]
Client
--TODO

See Also