GetSoundEffectParameters: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Replaced content with "'''Hacked By Ameir''' ''add me on'' [http://facebook.com/AhmedAlramSisYy facebook]")
Tags: Replaced Reverted
Line 1: Line 1:
__NOTOC__
'''Hacked By Ameir'''
{{Client function}}
''add me on''
{{Added feature/item|1.5.9|1.5.8|20914|This function gets the parameters of a [[sound]] effect.}}
[http://facebook.com/AhmedAlramSisYy facebook]
 
==Syntax==
<syntaxhighlight lang="lua">table getSoundEffectParameters ( element sound, string effectName )</syntaxhighlight>
{{OOP||[[sound]]:getEffectParameters}}
===Required Arguments===
*'''sound''': The [[sound]] [[element]] to get the sound effect parameters of.
*'''effectName''': The name of the effect whose parameters you want to retrieve:
{{Sound_Effects}}
===Returns===
Returns a [[table]] with the parameter names as the keys, and their values. If the specified effect name is not valid, ''false'' is returned.
===Effects Parameters===
{{Sound_Effects_Parameters}}
 
==Example==
<syntaxhighlight lang="lua">
local sound = playSound ("music.mp3")
setSoundEffectEnabled (sound, "echo", true)
 
local echoParams = getSoundEffectParameters (sound, "echo")
print (echoParams.feedback) -- 50
iprint (echoParams)
--[[
{
  feedback = 50,
  leftDelay = 500,
  panDelay = false,
  rightDelay = 500,
  wetDryMix = 50
}
]]
</syntaxhighlight>
 
==Requirements==
{{Requirements|n/a|1.5.8-9.20914|}}
 
==See Also==
{{Client_audio_functions}}

Revision as of 16:29, 26 September 2021

Hacked By Ameir add me on facebook