<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RO/setSoundProperties?action=history&amp;feed=atom</id>
	<title>RO/setSoundProperties - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RO/setSoundProperties?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/setSoundProperties&amp;action=history"/>
	<updated>2026-04-03T17:55:31Z</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/setSoundProperties&amp;diff=62319&amp;oldid=prev</id>
		<title>Vinyard: Created page with &quot;__NOTOC__  {{RO/Funcție client}} {{New feature/item|3.0130|1.3.0|4097| Această funcție modifică proprietățile unui element de tip sound. }} {{RO/Observații|Stream-u...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/setSoundProperties&amp;diff=62319&amp;oldid=prev"/>
		<updated>2019-03-03T09:42:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{RO/Funcție client}} {{New feature/item|3.0130|1.3.0|4097| Această funcție modifică proprietățile unui element de tip &lt;a href=&quot;/wiki/Sound&quot; class=&quot;mw-redirect&quot; title=&quot;Sound&quot;&gt;sound&lt;/a&gt;. }} {{RO/Observații|Stream-u...&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;
{{RO/Funcție client}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4097|&lt;br /&gt;
Această funcție modifică proprietățile unui element de tip [[sound]].&lt;br /&gt;
}}&lt;br /&gt;
{{RO/Observații|Stream-urile nu sunt sprijinite.}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxă== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundProperties(element sunet, float fSampleRate, float fTempo, float fPitch [, bool bReverse = false])&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setProperties||getSoundProperties}}&lt;br /&gt;
===Argumente Necesare=== &lt;br /&gt;
*'''sunet:''' un [[element]] de tip [[sound]] creat folosind [[RO/playSound]] sau [[RO/playSound3D]]&lt;br /&gt;
&lt;br /&gt;
*'''fSampleRate:''' o valoare flotantă ce definește [http://en.wikipedia.org/wiki/Sampling_rate sample rate] elementului de tip [[sound]]&lt;br /&gt;
&lt;br /&gt;
*'''fTempo:''' o valoare flotantă ce definește [http://en.wikipedia.org/wiki/Tempo tempo] elementului de tip [[sound]]&lt;br /&gt;
&lt;br /&gt;
*'''fPitch:''' o valoare flotantă ce definește [http://en.wikipedia.org/wiki/Pitch_%28music%29 pitch] elementului de tip [[sound]]&lt;br /&gt;
&lt;br /&gt;
===Argumente Opționale=== &lt;br /&gt;
{{RO/ArgumenteOpționale}} &lt;br /&gt;
*'''bReverse:''' o valoare de tip [[boolean]] care specifică dacă sunetul trebuie dat înapoi/întors sau nu.&lt;br /&gt;
&lt;br /&gt;
===Redare===&lt;br /&gt;
Redă ''true'' dacă proprietățile au fost setate cu succes. În caz contrar, ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplu== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function editSongSound()&lt;br /&gt;
	local sound = playSound(&amp;quot;song.wav&amp;quot;, false) -- Redă sunetul 'song.wav' o singură dată;&lt;br /&gt;
	setSoundProperties(sound, 48000.0, 128.00, 440.0, false) -- Setează sample rate-ul la 48,000 Hz, tempo-ul la 128.00, pitch-ul la 440 Hz, fără ca sunetul să fie dat înapoi.&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, editSongSound) -- Execută această funcție atunci când resursa pornește.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vizualizați de asemenea==&lt;br /&gt;
{{RO/Funcții_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[EN:setSoundProperties]]&lt;br /&gt;
[[hu:setSoundProperties]]&lt;br /&gt;
[[ar:setSoundProperties]]&lt;/div&gt;</summary>
		<author><name>Vinyard</name></author>
	</entry>
</feed>