<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RO/playSound?action=history&amp;feed=atom</id>
	<title>RO/playSound - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RO/playSound?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/playSound&amp;action=history"/>
	<updated>2026-04-07T01:59:44Z</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/playSound&amp;diff=71854&amp;oldid=prev</id>
		<title>Alvesvin at 02:01, 18 August 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/playSound&amp;diff=71854&amp;oldid=prev"/>
		<updated>2021-08-18T02:01:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:01, 18 August 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[AR:playSound]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[AR:playSound]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[DE:playSound]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[DE:playSound]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[PT-BR:playSound]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-62036:rev-71854 --&gt;
&lt;/table&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/playSound&amp;diff=62036&amp;oldid=prev</id>
		<title>Vinyard: Created page with &quot;__NOTOC__  {{RO/Funcție client}} Crează un element de tip sound și îl redă imediat după ce acesta a fost creat pentru jucătorul local.&lt;br /&gt; &lt;br /&gt; '''Notă:'''...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/playSound&amp;diff=62036&amp;oldid=prev"/>
		<updated>2019-01-25T22:21:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{RO/Funcție client}} Crează un &lt;a href=&quot;/wiki/Element&quot; title=&quot;Element&quot;&gt;element&lt;/a&gt; de tip &lt;a href=&quot;/wiki/Sound&quot; class=&quot;mw-redirect&quot; title=&quot;Sound&quot;&gt;sound&lt;/a&gt; și îl redă imediat după ce acesta a fost creat pentru jucătorul local.&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; &amp;#039;&amp;#039;&amp;#039;Notă:&amp;#039;&amp;#039;&amp;#039;...&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;
Crează un [[element]] de tip [[sound]] și îl redă imediat după ce acesta a fost creat pentru jucătorul local.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Notă:''' Singurele formate audio acceptate sunt MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M și PLS (exemplu Webstream).&lt;br /&gt;
{{RO/Observații|Din motive de performanță, atunci când playSound este folosit pentru efecte ce vor fi redate frecvent (exemplu: tragerea unei arme), se recomandă să convertiți fișierul audio într-unul de tip WAV pe un singur canal de redare (mono) la o rată de maximum 22050 Hz. De asemenea, se recomandă adăugarea unei limite privind frecvența (cât de des) la care poate fi redat efectul. (exemplu: odată la 50ms.)}}&lt;br /&gt;
==Sintaxă== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound (string soundPath, [ bool looped = false, bool throttled = true ])&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Sound]]}}&lt;br /&gt;
===Argumente Necesare=== &lt;br /&gt;
*'''soundPath:''' calea ([[filepath]]) sau URL-ul (link-ul) fișierului audio pe care doriți să-l redați. (Fișierele audio specificate prin filepath trebuie predefinite în [[meta.xml]] folosind tag-ul &amp;lt;file /&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
===Argumente Opționale=== &lt;br /&gt;
{{RO/ArgumenteOpționale}} &lt;br /&gt;
*'''looped:''' o valoare de tip [[boolean]] folosită pentru a stabili dacă sunetul trebuie să fie repetat. Pentru a repeta sunetul folosiți ''true''. Acest argument nu va funcționa pe sunetele redate în stream, ci doar în cazul fișierelor audio.&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''throttled:''' o valoare de tip [[boolean]] folosită pentru a stabili dacă sunetului trebuie să i se ofere o bandă de descărcare redusă. Pentru a oferi o bandă de descărcare redusă sunetului, folosiți ''true''. Acest argument va fi activat din oficiu și va fi aplicat numai în cazul unui URL (link).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Redare===&lt;br /&gt;
Redă un [[element]] de tip [[sound]] dacă sunetul a fost creat cu succes. În caz contrar ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplu==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function wasted (killer, weapon, bodypart) &lt;br /&gt;
	local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- Redă fișierul audio wasted.mp3 din registrul sounds&lt;br /&gt;
	setSoundVolume(sound, 0.5) -- Setează volumul sunetului la 50%&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, localPlayer, wasted) -- Adaugă un eveniment declanșator&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vizualizați de asemenea==&lt;br /&gt;
{{RO/Funcții_audio_client}}&lt;br /&gt;
[[EN:playSound]]&lt;br /&gt;
[[HU:playSound]]&lt;br /&gt;
[[AR:playSound]]&lt;br /&gt;
[[DE:playSound]]&lt;/div&gt;</summary>
		<author><name>Vinyard</name></author>
	</entry>
</feed>