<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RO/getSoundProperties?action=history&amp;feed=atom</id>
	<title>RO/getSoundProperties - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RO/getSoundProperties?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/getSoundProperties&amp;action=history"/>
	<updated>2026-04-11T09:40:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/getSoundProperties&amp;diff=77806&amp;oldid=prev</id>
		<title>Hydra: Created page with &quot;__NOTOC__  {{Client function}} {{New feature/item|3.0130|1.3.0|4097| Această funcție obține proprietățile unui anumit sound. }}  ==Sintaxă==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt;float, float, float, bool getSoundProperties( element sound )&lt;/syntaxhighlight&gt;  {{OOP||sound:getProperties||setSoundProperties}} ===Argumente necesare===  *'''sound:'''' un sound element care este creat folosind playSound sau playSound3D.  ===Returneaza=== Această funcție...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/getSoundProperties&amp;diff=77806&amp;oldid=prev"/>
		<updated>2023-10-02T08:02:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}} {{New feature/item|3.0130|1.3.0|4097| Această funcție obține proprietățile unui anumit &lt;a href=&quot;/wiki/Sound&quot; class=&quot;mw-redirect&quot; title=&quot;Sound&quot;&gt;sound&lt;/a&gt;. }}  ==Sintaxă==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;float, float, float, bool getSoundProperties( element sound )&amp;lt;/syntaxhighlight&amp;gt;  {{OOP||&lt;a href=&quot;/wiki/Sound&quot; class=&quot;mw-redirect&quot; title=&quot;Sound&quot;&gt;sound&lt;/a&gt;:getProperties||setSoundProperties}} ===Argumente necesare===  *&amp;#039;&amp;#039;&amp;#039;sound:&amp;#039;&amp;#039;&amp;#039;&amp;#039; un &lt;a href=&quot;/wiki/Sound&quot; class=&quot;mw-redirect&quot; title=&quot;Sound&quot;&gt;sound&lt;/a&gt; &lt;a href=&quot;/wiki/Element&quot; title=&quot;Element&quot;&gt;element&lt;/a&gt; care este creat folosind &lt;a href=&quot;/wiki/PlaySound&quot; title=&quot;PlaySound&quot;&gt;playSound&lt;/a&gt; sau &lt;a href=&quot;/wiki/PlaySound3D&quot; title=&quot;PlaySound3D&quot;&gt;playSound3D&lt;/a&gt;.  ===Returneaza=== Această funcție...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4097|&lt;br /&gt;
Această funcție obține proprietățile unui anumit [[sound]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxă== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;float, float, float, bool getSoundProperties( element sound )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:getProperties||setSoundProperties}}&lt;br /&gt;
===Argumente necesare=== &lt;br /&gt;
*'''sound:'''' un [[sound]] [[element]] care este creat folosind [[playSound]] sau [[playSound3D]].&lt;br /&gt;
&lt;br /&gt;
===Returneaza===&lt;br /&gt;
Această funcție returnează 3 [[float|floats]] și o valoare [[boolean]]:&lt;br /&gt;
&lt;br /&gt;
Primul float este cel a sunetului [http://en.wikipedia.org/wiki/Sampling_rate sample rate], al doilea este tempo-ul suntelui [http://en.wikipedia.org/wiki/Tempo tempo], iar cel de-al treilea este înălțimea [http://en.wikipedia.org/wiki/Pitch_%28music%29 pitch] sunetului. Boolean care reprezintă dacă sunetul este inversat sau nu.&lt;br /&gt;
&lt;br /&gt;
==Exemplu== &lt;br /&gt;
'''Exemplu 1:''' Acest exemplu ar returna la fiecare 5 secunde trei valori float reprezentând rata de eșantionare, tempo-ul, înălțimea și o valoare booleană care reprezintă dacă sunetul este inversat sau nu.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sound &lt;br /&gt;
local timer&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    sound = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    timer = setTimer(function() soundProperties(sound) end, 5000, 0)&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
function soundProperties(sound)&lt;br /&gt;
    local sampleRate, tempo, pitch, isReversed = getSoundProperties(sound) --gets the sample rate, tempo, pitch and a boolean value representing whether the sound is reversed or not.&lt;br /&gt;
    outputChatBox(sampleRate..&amp;quot; &amp;quot;..tempo..&amp;quot; &amp;quot;..pitch..&amp;quot; &amp;quot;..tostring(isReversed))&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vezi și==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:getSoundProperties]]&lt;br /&gt;
[[ar:getSoundProperties]]&lt;br /&gt;
[[pt-br:getSoundProperties]]&lt;/div&gt;</summary>
		<author><name>Hydra</name></author>
	</entry>
</feed>