GetSoundLevelData: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:
This function gets the left/right level from a [[sound]] [[element]].
This function gets the left/right level from a [[sound]] [[element]].
}}
}}
 
{{New_feature|3.0139|1.3.2|
If the element is a player, this function will use the players voice.
}}
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">int, int getSoundLevelData ( element theSound )</syntaxhighlight>  
<syntaxhighlight lang="lua">int, int getSoundLevelData ( element theSound )</syntaxhighlight>  
Line 22: Line 24:
==Requirements==
==Requirements==
{{Requirements|n/a|1.3.0-9.04162|}}
{{Requirements|n/a|1.3.0-9.04162|}}
==Changelog==
{{ChangelogHeader}}
{{ChangelogItem|1.3.2|Added player element to use a players voice}}


==See Also==
==See Also==
{{Client_audio_functions}}
{{Client_audio_functions}}
[[Category:Needs Example]]
[[Category:Needs Example]]

Revision as of 22:44, 4 May 2013

This function gets the left/right level from a sound element. If the element is a player, this function will use the players voice.

Syntax

int, int getSoundLevelData ( element theSound )

Required Arguments

  • theSound The sound element which level data you want to return.

Returns

Returns a 2 values with Left, Right level data from sound, false otherwise.

Example

TODO

--TODO

Requirements

This template will be deleted.

Changelog

Version Description
1.3.2 Added player element to use a players voice

See Also