GetSoundProperties: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
{{Needs_Example}}
{{New feature/item|3.0130|1.3.0|4097|
{{New feature/item|3.0130|1.3.0|4097|
This function gets the properties of a specific [[sound]].
This function gets the properties of a specific [[sound]].
Line 25: Line 26:
==See Also==
==See Also==
{{Client_audio_functions}}
{{Client_audio_functions}}
[[Category:Needs Example]]
[[AR:getSoundProperties]]
[[AR:getSoundProperties]]

Revision as of 12:34, 2 January 2014

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

Before submitting check out Editing Guidelines Script Examples.

This function gets the properties of a specific sound.

Syntax

float, float, float, bool getSoundProperties( element sound )

Required Arguments

Returns

This function returns 3 floats and a boolean value:

The first float is the sound's sample rate, the second one the sound's tempo, and the third one the pitch of the sound. The boolean representing whether the sound is reversed or not.

Example

Click to collapse [-]
Client
-- not done yet

See Also