GetSoundLevelData: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
==See Also==
==See Also==
{{Client_audio_functions}}
{{Client_audio_functions}}
{{Needs Example}}

Revision as of 09:23, 16 September 2012

ADDED/UPDATED IN VERSION 1.3.0 r4162:

Get a sound level data from sound element.



Syntax

int Left, int Right 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.

Requirements

Minimum server version n/a
Minimum client version 1.3.0-9.04162

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0-9.04162" />

See Also

Shared


Accessories-text-editor.png Script Example Missing Function GetSoundLevelData needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.