<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Max</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Max"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Max"/>
	<updated>2026-05-04T04:24:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundProperties&amp;diff=56261</id>
		<title>AR/setSoundProperties</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundProperties&amp;diff=56261"/>
		<updated>2018-07-20T01:52:03Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Required Arguments */&lt;/p&gt;
&lt;hr /&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;
This function edit's the properties of a specific [[sound]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==شرح الوظيفة==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundProperties(element sound, float fSampleRate, float fTempo, float fPitch, bool bReverse )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''sound:''' A sound element that is created using [[playSound]] or [[playSound3D]]&lt;br /&gt;
&lt;br /&gt;
*'''fSampleRate:''' A float that defines the new sound's [http://en.wikipedia.org/wiki/Sampling_rate sample rate]&lt;br /&gt;
&lt;br /&gt;
*'''fTempo:''' A float that defines the new sound [http://en.wikipedia.org/wiki/Tempo tempo]&lt;br /&gt;
&lt;br /&gt;
*'''fPitch:''' A float that defines the new sound [http://en.wikipedia.org/wiki/Pitch_%28music%29 pitch]&lt;br /&gt;
&lt;br /&gt;
*'''bReverse:''' A boolean representing whether the sound will be reversed or not.&lt;br /&gt;
&lt;br /&gt;
===أستعادة===&lt;br /&gt;
Returns true if the properties sucessfully set, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==مثال== &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) -- Play the file 'song.wav' and make it play only once&lt;br /&gt;
	setSoundProperties(sound, 48000.0, 128.00, 440.0, false) -- Set its samplerate to 48,000 Hz, tempo to 128.00, pitch to 440 Hz and not reversed&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, editSongSound) -- Execute the function when the resource is started&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundProperties&amp;diff=56260</id>
		<title>AR/setSoundProperties</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundProperties&amp;diff=56260"/>
		<updated>2018-07-20T01:51:38Z</updated>

		<summary type="html">&lt;p&gt;Max: /* مثال الوظيفة */&lt;/p&gt;
&lt;hr /&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;
This function edit's the properties of a specific [[sound]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==شرح الوظيفة==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundProperties(element sound, float fSampleRate, float fTempo, float fPitch, bool bReverse )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' A sound element that is created using [[playSound]] or [[playSound3D]]&lt;br /&gt;
&lt;br /&gt;
*'''fSampleRate:''' A float that defines the new sound's [http://en.wikipedia.org/wiki/Sampling_rate sample rate]&lt;br /&gt;
&lt;br /&gt;
*'''fTempo:''' A float that defines the new sound [http://en.wikipedia.org/wiki/Tempo tempo]&lt;br /&gt;
&lt;br /&gt;
*'''fPitch:''' A float that defines the new sound [http://en.wikipedia.org/wiki/Pitch_%28music%29 pitch]&lt;br /&gt;
&lt;br /&gt;
*'''bReverse:''' A boolean representing whether the sound will be reversed or not.&lt;br /&gt;
&lt;br /&gt;
===أستعادة===&lt;br /&gt;
Returns true if the properties sucessfully set, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==مثال== &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) -- Play the file 'song.wav' and make it play only once&lt;br /&gt;
	setSoundProperties(sound, 48000.0, 128.00, 440.0, false) -- Set its samplerate to 48,000 Hz, tempo to 128.00, pitch to 440 Hz and not reversed&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, editSongSound) -- Execute the function when the resource is started&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundProperties&amp;diff=56259</id>
		<title>AR/setSoundProperties</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundProperties&amp;diff=56259"/>
		<updated>2018-07-20T01:51:17Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Syntax */&lt;/p&gt;
&lt;hr /&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;
This function edit's the properties of a specific [[sound]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==مثال الوظيفة== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundProperties(element sound, float fSampleRate, float fTempo, float fPitch, bool bReverse )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' A sound element that is created using [[playSound]] or [[playSound3D]]&lt;br /&gt;
&lt;br /&gt;
*'''fSampleRate:''' A float that defines the new sound's [http://en.wikipedia.org/wiki/Sampling_rate sample rate]&lt;br /&gt;
&lt;br /&gt;
*'''fTempo:''' A float that defines the new sound [http://en.wikipedia.org/wiki/Tempo tempo]&lt;br /&gt;
&lt;br /&gt;
*'''fPitch:''' A float that defines the new sound [http://en.wikipedia.org/wiki/Pitch_%28music%29 pitch]&lt;br /&gt;
&lt;br /&gt;
*'''bReverse:''' A boolean representing whether the sound will be reversed or not.&lt;br /&gt;
&lt;br /&gt;
===أستعادة===&lt;br /&gt;
Returns true if the properties sucessfully set, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==مثال== &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) -- Play the file 'song.wav' and make it play only once&lt;br /&gt;
	setSoundProperties(sound, 48000.0, 128.00, 440.0, false) -- Set its samplerate to 48,000 Hz, tempo to 128.00, pitch to 440 Hz and not reversed&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, editSongSound) -- Execute the function when the resource is started&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundProperties&amp;diff=56258</id>
		<title>AR/setSoundProperties</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundProperties&amp;diff=56258"/>
		<updated>2018-07-20T01:51:00Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Example */&lt;/p&gt;
&lt;hr /&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;
This function edit's the properties of a specific [[sound]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundProperties(element sound, float fSampleRate, float fTempo, float fPitch, bool bReverse )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' A sound element that is created using [[playSound]] or [[playSound3D]]&lt;br /&gt;
&lt;br /&gt;
*'''fSampleRate:''' A float that defines the new sound's [http://en.wikipedia.org/wiki/Sampling_rate sample rate]&lt;br /&gt;
&lt;br /&gt;
*'''fTempo:''' A float that defines the new sound [http://en.wikipedia.org/wiki/Tempo tempo]&lt;br /&gt;
&lt;br /&gt;
*'''fPitch:''' A float that defines the new sound [http://en.wikipedia.org/wiki/Pitch_%28music%29 pitch]&lt;br /&gt;
&lt;br /&gt;
*'''bReverse:''' A boolean representing whether the sound will be reversed or not.&lt;br /&gt;
&lt;br /&gt;
===أستعادة===&lt;br /&gt;
Returns true if the properties sucessfully set, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==مثال== &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) -- Play the file 'song.wav' and make it play only once&lt;br /&gt;
	setSoundProperties(sound, 48000.0, 128.00, 440.0, false) -- Set its samplerate to 48,000 Hz, tempo to 128.00, pitch to 440 Hz and not reversed&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, editSongSound) -- Execute the function when the resource is started&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundProperties&amp;diff=56257</id>
		<title>AR/setSoundProperties</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundProperties&amp;diff=56257"/>
		<updated>2018-07-20T01:50:54Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Returns */&lt;/p&gt;
&lt;hr /&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;
This function edit's the properties of a specific [[sound]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundProperties(element sound, float fSampleRate, float fTempo, float fPitch, bool bReverse )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' A sound element that is created using [[playSound]] or [[playSound3D]]&lt;br /&gt;
&lt;br /&gt;
*'''fSampleRate:''' A float that defines the new sound's [http://en.wikipedia.org/wiki/Sampling_rate sample rate]&lt;br /&gt;
&lt;br /&gt;
*'''fTempo:''' A float that defines the new sound [http://en.wikipedia.org/wiki/Tempo tempo]&lt;br /&gt;
&lt;br /&gt;
*'''fPitch:''' A float that defines the new sound [http://en.wikipedia.org/wiki/Pitch_%28music%29 pitch]&lt;br /&gt;
&lt;br /&gt;
*'''bReverse:''' A boolean representing whether the sound will be reversed or not.&lt;br /&gt;
&lt;br /&gt;
===أستعادة===&lt;br /&gt;
Returns true if the properties sucessfully set, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &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) -- Play the file 'song.wav' and make it play only once&lt;br /&gt;
	setSoundProperties(sound, 48000.0, 128.00, 440.0, false) -- Set its samplerate to 48,000 Hz, tempo to 128.00, pitch to 440 Hz and not reversed&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, editSongSound) -- Execute the function when the resource is started&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56256</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56256"/>
		<updated>2018-07-20T01:50:24Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
Use a player element to control a players voice with this function.&lt;br /&gt;
}}&lt;br /&gt;
==شرح الوظيفة== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===أستعادة===&lt;br /&gt;
Returns &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&lt;br /&gt;
&lt;br /&gt;
==مثال== &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 wasted (killer, weapon, bodypart) -- تعريف&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- &amp;quot;wasted&amp;quot; تشغيل صوت&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- تعين مستوى الصوت الى 0.5&lt;br /&gt;
end -- أغلاق&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, getLocalPlayer(), wasted) -- اضافة حدث&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التحديثات==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|اضافة تحكم اللاعب في الصوت}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56255</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56255"/>
		<updated>2018-07-20T01:50:03Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
Use a player element to control a players voice with this function.&lt;br /&gt;
}}&lt;br /&gt;
==شرح الوظيفة== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&lt;br /&gt;
&lt;br /&gt;
==مثال== &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 wasted (killer, weapon, bodypart) -- تعريف&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- &amp;quot;wasted&amp;quot; تشغيل صوت&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- تعين مستوى الصوت الى 0.5&lt;br /&gt;
end -- أغلاق&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, getLocalPlayer(), wasted) -- اضافة حدث&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التحديثات==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|اضافة تحكم اللاعب في الصوت}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56254</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56254"/>
		<updated>2018-07-20T01:49:43Z</updated>

		<summary type="html">&lt;p&gt;Max: /* == */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
Use a player element to control a players voice with this function.&lt;br /&gt;
}}&lt;br /&gt;
==شرح الوظيفة== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&lt;br /&gt;
&lt;br /&gt;
==مثال== &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 wasted (killer, weapon, bodypart) -- تعريف&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- &amp;quot;wasted&amp;quot; تشغيل صوت&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- تعين مستوى الصوت الى 0.5&lt;br /&gt;
end -- أغلاق&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, getLocalPlayer(), wasted) -- اضافة حدث&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التحديثات==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|اضافة تحكم اللاعب في الصوت}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56253</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56253"/>
		<updated>2018-07-20T01:49:03Z</updated>

		<summary type="html">&lt;p&gt;Max: /* شرح للوظيفة */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
Use a player element to control a players voice with this function.&lt;br /&gt;
}}&lt;br /&gt;
==== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&lt;br /&gt;
&lt;br /&gt;
==مثال== &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 wasted (killer, weapon, bodypart) -- تعريف&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- &amp;quot;wasted&amp;quot; تشغيل صوت&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- تعين مستوى الصوت الى 0.5&lt;br /&gt;
end -- أغلاق&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, getLocalPlayer(), wasted) -- اضافة حدث&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التحديثات==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|اضافة تحكم اللاعب في الصوت}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56252</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56252"/>
		<updated>2018-07-20T01:48:42Z</updated>

		<summary type="html">&lt;p&gt;Max: /* مثال */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
Use a player element to control a players voice with this function.&lt;br /&gt;
}}&lt;br /&gt;
==شرح للوظيفة== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&lt;br /&gt;
&lt;br /&gt;
==مثال== &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 wasted (killer, weapon, bodypart) -- تعريف&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- &amp;quot;wasted&amp;quot; تشغيل صوت&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- تعين مستوى الصوت الى 0.5&lt;br /&gt;
end -- أغلاق&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, getLocalPlayer(), wasted) -- اضافة حدث&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التحديثات==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|اضافة تحكم اللاعب في الصوت}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56251</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56251"/>
		<updated>2018-07-20T01:48:28Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
Use a player element to control a players voice with this function.&lt;br /&gt;
}}&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&lt;br /&gt;
&lt;br /&gt;
==مثال== &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 wasted (killer, weapon, bodypart) -- تعريف&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- &amp;quot;wasted&amp;quot; تشغيل صوت&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- تعين مستوى الصوت الى 0.5&lt;br /&gt;
end -- أغلاق&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, getLocalPlayer(), wasted) -- اضافة حدث&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التحديثات==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|اضافة تحكم اللاعب في الصوت}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56250</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=56250"/>
		<updated>2018-07-20T01:48:16Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
Use a player element to control a players voice with this function.&lt;br /&gt;
}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&lt;br /&gt;
&lt;br /&gt;
==مثال== &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 wasted (killer, weapon, bodypart) -- تعريف&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- &amp;quot;wasted&amp;quot; تشغيل صوت&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- تعين مستوى الصوت الى 0.5&lt;br /&gt;
end -- أغلاق&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, getLocalPlayer(), wasted) -- اضافة حدث&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التحديثات==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|اضافة تحكم اللاعب في الصوت}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56249</id>
		<title>AR/getSoundFFTData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56249"/>
		<updated>2018-07-20T01:47:55Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Optional Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4125|&lt;br /&gt;
This function gets the fast fourier transform data for an audio stream which is a table of floats representing the current audio frame.&lt;br /&gt;
This allows things like visualisations.&lt;br /&gt;
&lt;br /&gt;
a fast fourier transform generates a table of all the frequencies of the current audio frame which starts at the bass end of the spectrum to mids to highs in that order&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Should you have any problems there is an example resource located on the resource svn here:&lt;br /&gt;
[https://code.google.com/p/mtasa-resources/source/browse/#svn%2Ftrunk%2F%5Bgameplay%5D%2FVisualiser Visualiser]&lt;br /&gt;
&lt;br /&gt;
just type &amp;quot;startmusic mystreamurl&amp;quot; in your console and it will play on the cinema billboard near A51&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
If the element is a player, this function will use the players voice.&lt;br /&gt;
}}&lt;br /&gt;
==شرح الوظيفة== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundFFTData ( element sound, int iSamples [, int iBands = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''sound:'''عنصر الصوت يتم انشاؤه باستخدام [[playSound]] او [[playSound3D]].&lt;br /&gt;
*'''iSamples:''' العينات المسموح بها هي 128 و 256 و 512 و 1024 و 2048 و 4096 و 8192 و 16384&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختيارية===&lt;br /&gt;
*'''iBands:''' يسمح لك خيار ما بعد المعالجة بتقسيم العينات إلى العدد المطلوب من الأشرطة أو الأشرطة ، لذلك إذا كنت تحتاج إلى 5 أشرطة فقط ، فهذا يوفر الكثير من طاقة المعالج مقارنة بمحاولة القيام بذلك في Lua&lt;br /&gt;
&lt;br /&gt;
===استعاده===&lt;br /&gt;
لعرض جدول للعوام التي تمثل الإطار الصوتي الحالي. إرجاع false إذا لم يتم تشغيل الصوت بعد أو لم يتم تخزينه مؤقتًا في حالة مجموعات البث.&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    local sound  = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    local data = getSoundWaveData(sound, 512) -- returns table&lt;br /&gt;
    for i, v in pairs(data) do&lt;br /&gt;
        outputChatBox(v) -- outputs the float representing the current audio frame&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التغير==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element to use a players voice}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56248</id>
		<title>AR/getSoundFFTData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56248"/>
		<updated>2018-07-20T01:47:21Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4125|&lt;br /&gt;
This function gets the fast fourier transform data for an audio stream which is a table of floats representing the current audio frame.&lt;br /&gt;
This allows things like visualisations.&lt;br /&gt;
&lt;br /&gt;
a fast fourier transform generates a table of all the frequencies of the current audio frame which starts at the bass end of the spectrum to mids to highs in that order&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Should you have any problems there is an example resource located on the resource svn here:&lt;br /&gt;
[https://code.google.com/p/mtasa-resources/source/browse/#svn%2Ftrunk%2F%5Bgameplay%5D%2FVisualiser Visualiser]&lt;br /&gt;
&lt;br /&gt;
just type &amp;quot;startmusic mystreamurl&amp;quot; in your console and it will play on the cinema billboard near A51&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
If the element is a player, this function will use the players voice.&lt;br /&gt;
}}&lt;br /&gt;
==شرح الوظيفة== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundFFTData ( element sound, int iSamples [, int iBands = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''sound:'''عنصر الصوت يتم انشاؤه باستخدام [[playSound]] او [[playSound3D]].&lt;br /&gt;
*'''iSamples:''' العينات المسموح بها هي 128 و 256 و 512 و 1024 و 2048 و 4096 و 8192 و 16384&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''iBands:''' يسمح لك خيار ما بعد المعالجة بتقسيم العينات إلى العدد المطلوب من الأشرطة أو الأشرطة ، لذلك إذا كنت تحتاج إلى 5 أشرطة فقط ، فهذا يوفر الكثير من طاقة المعالج مقارنة بمحاولة القيام بذلك في Lua&lt;br /&gt;
&lt;br /&gt;
===استعاده===&lt;br /&gt;
لعرض جدول للعوام التي تمثل الإطار الصوتي الحالي. إرجاع false إذا لم يتم تشغيل الصوت بعد أو لم يتم تخزينه مؤقتًا في حالة مجموعات البث.&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    local sound  = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    local data = getSoundWaveData(sound, 512) -- returns table&lt;br /&gt;
    for i, v in pairs(data) do&lt;br /&gt;
        outputChatBox(v) -- outputs the float representing the current audio frame&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التغير==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element to use a players voice}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56247</id>
		<title>AR/getSoundFFTData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56247"/>
		<updated>2018-07-20T01:47:11Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4125|&lt;br /&gt;
This function gets the fast fourier transform data for an audio stream which is a table of floats representing the current audio frame.&lt;br /&gt;
This allows things like visualisations.&lt;br /&gt;
&lt;br /&gt;
a fast fourier transform generates a table of all the frequencies of the current audio frame which starts at the bass end of the spectrum to mids to highs in that order&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Should you have any problems there is an example resource located on the resource svn here:&lt;br /&gt;
[https://code.google.com/p/mtasa-resources/source/browse/#svn%2Ftrunk%2F%5Bgameplay%5D%2FVisualiser Visualiser]&lt;br /&gt;
&lt;br /&gt;
just type &amp;quot;startmusic mystreamurl&amp;quot; in your console and it will play on the cinema billboard near A51&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
If the element is a player, this function will use the players voice.&lt;br /&gt;
}}&lt;br /&gt;
==شرح الوظيفة== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundFFTData ( element sound, int iSamples [, int iBands = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:'''عنصر الصوت يتم انشاؤه باستخدام [[playSound]] او [[playSound3D]].&lt;br /&gt;
*'''iSamples:''' العينات المسموح بها هي 128 و 256 و 512 و 1024 و 2048 و 4096 و 8192 و 16384&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''iBands:''' يسمح لك خيار ما بعد المعالجة بتقسيم العينات إلى العدد المطلوب من الأشرطة أو الأشرطة ، لذلك إذا كنت تحتاج إلى 5 أشرطة فقط ، فهذا يوفر الكثير من طاقة المعالج مقارنة بمحاولة القيام بذلك في Lua&lt;br /&gt;
&lt;br /&gt;
===استعاده===&lt;br /&gt;
لعرض جدول للعوام التي تمثل الإطار الصوتي الحالي. إرجاع false إذا لم يتم تشغيل الصوت بعد أو لم يتم تخزينه مؤقتًا في حالة مجموعات البث.&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    local sound  = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    local data = getSoundWaveData(sound, 512) -- returns table&lt;br /&gt;
    for i, v in pairs(data) do&lt;br /&gt;
        outputChatBox(v) -- outputs the float representing the current audio frame&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التغير==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element to use a players voice}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56246</id>
		<title>AR/getSoundFFTData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56246"/>
		<updated>2018-07-20T01:46:46Z</updated>

		<summary type="html">&lt;p&gt;Max: /* شرح لاوظيفه */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4125|&lt;br /&gt;
This function gets the fast fourier transform data for an audio stream which is a table of floats representing the current audio frame.&lt;br /&gt;
This allows things like visualisations.&lt;br /&gt;
&lt;br /&gt;
a fast fourier transform generates a table of all the frequencies of the current audio frame which starts at the bass end of the spectrum to mids to highs in that order&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Should you have any problems there is an example resource located on the resource svn here:&lt;br /&gt;
[https://code.google.com/p/mtasa-resources/source/browse/#svn%2Ftrunk%2F%5Bgameplay%5D%2FVisualiser Visualiser]&lt;br /&gt;
&lt;br /&gt;
just type &amp;quot;startmusic mystreamurl&amp;quot; in your console and it will play on the cinema billboard near A51&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
If the element is a player, this function will use the players voice.&lt;br /&gt;
}}&lt;br /&gt;
==شرح الوظيفة== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundFFTData ( element sound, int iSamples [, int iBands = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:'''عنصر الصوت يتم انشاؤه باستخدام [[playSound]] او [[playSound3D]].&lt;br /&gt;
*'''iSamples:''' العينات المسموح بها هي 128 و 256 و 512 و 1024 و 2048 و 4096 و 8192 و 16384&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''iBands:''' يسمح لك خيار ما بعد المعالجة بتقسيم العينات إلى العدد المطلوب من الأشرطة أو الأشرطة ، لذلك إذا كنت تحتاج إلى 5 أشرطة فقط ، فهذا يوفر الكثير من طاقة المعالج مقارنة بمحاولة القيام بذلك في Lua&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
لعرض جدول للعوام التي تمثل الإطار الصوتي الحالي. إرجاع false إذا لم يتم تشغيل الصوت بعد أو لم يتم تخزينه مؤقتًا في حالة مجموعات البث.&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    local sound  = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    local data = getSoundWaveData(sound, 512) -- returns table&lt;br /&gt;
    for i, v in pairs(data) do&lt;br /&gt;
        outputChatBox(v) -- outputs the float representing the current audio frame&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التغير==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element to use a players voice}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56245</id>
		<title>AR/getSoundFFTData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56245"/>
		<updated>2018-07-20T01:46:08Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4125|&lt;br /&gt;
This function gets the fast fourier transform data for an audio stream which is a table of floats representing the current audio frame.&lt;br /&gt;
This allows things like visualisations.&lt;br /&gt;
&lt;br /&gt;
a fast fourier transform generates a table of all the frequencies of the current audio frame which starts at the bass end of the spectrum to mids to highs in that order&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Should you have any problems there is an example resource located on the resource svn here:&lt;br /&gt;
[https://code.google.com/p/mtasa-resources/source/browse/#svn%2Ftrunk%2F%5Bgameplay%5D%2FVisualiser Visualiser]&lt;br /&gt;
&lt;br /&gt;
just type &amp;quot;startmusic mystreamurl&amp;quot; in your console and it will play on the cinema billboard near A51&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
If the element is a player, this function will use the players voice.&lt;br /&gt;
}}&lt;br /&gt;
==شرح لاوظيفه== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundFFTData ( element sound, int iSamples [, int iBands = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:'''عنصر الصوت يتم انشاؤه باستخدام [[playSound]] او [[playSound3D]].&lt;br /&gt;
*'''iSamples:''' العينات المسموح بها هي 128 و 256 و 512 و 1024 و 2048 و 4096 و 8192 و 16384&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''iBands:''' يسمح لك خيار ما بعد المعالجة بتقسيم العينات إلى العدد المطلوب من الأشرطة أو الأشرطة ، لذلك إذا كنت تحتاج إلى 5 أشرطة فقط ، فهذا يوفر الكثير من طاقة المعالج مقارنة بمحاولة القيام بذلك في Lua&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
لعرض جدول للعوام التي تمثل الإطار الصوتي الحالي. إرجاع false إذا لم يتم تشغيل الصوت بعد أو لم يتم تخزينه مؤقتًا في حالة مجموعات البث.&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    local sound  = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    local data = getSoundWaveData(sound, 512) -- returns table&lt;br /&gt;
    for i, v in pairs(data) do&lt;br /&gt;
        outputChatBox(v) -- outputs the float representing the current audio frame&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التغير==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element to use a players voice}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56244</id>
		<title>AR/getSoundFFTData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56244"/>
		<updated>2018-07-20T01:45:44Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4125|&lt;br /&gt;
This function gets the fast fourier transform data for an audio stream which is a table of floats representing the current audio frame.&lt;br /&gt;
This allows things like visualisations.&lt;br /&gt;
&lt;br /&gt;
a fast fourier transform generates a table of all the frequencies of the current audio frame which starts at the bass end of the spectrum to mids to highs in that order&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Should you have any problems there is an example resource located on the resource svn here:&lt;br /&gt;
[https://code.google.com/p/mtasa-resources/source/browse/#svn%2Ftrunk%2F%5Bgameplay%5D%2FVisualiser Visualiser]&lt;br /&gt;
&lt;br /&gt;
just type &amp;quot;startmusic mystreamurl&amp;quot; in your console and it will play on the cinema billboard near A51&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
If the element is a player, this function will use the players voice.&lt;br /&gt;
}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundFFTData ( element sound, int iSamples [, int iBands = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:'''عنصر الصوت يتم انشاؤه باستخدام [[playSound]] او [[playSound3D]].&lt;br /&gt;
*'''iSamples:''' العينات المسموح بها هي 128 و 256 و 512 و 1024 و 2048 و 4096 و 8192 و 16384&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''iBands:''' يسمح لك خيار ما بعد المعالجة بتقسيم العينات إلى العدد المطلوب من الأشرطة أو الأشرطة ، لذلك إذا كنت تحتاج إلى 5 أشرطة فقط ، فهذا يوفر الكثير من طاقة المعالج مقارنة بمحاولة القيام بذلك في Lua&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
لعرض جدول للعوام التي تمثل الإطار الصوتي الحالي. إرجاع false إذا لم يتم تشغيل الصوت بعد أو لم يتم تخزينه مؤقتًا في حالة مجموعات البث.&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    local sound  = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    local data = getSoundWaveData(sound, 512) -- returns table&lt;br /&gt;
    for i, v in pairs(data) do&lt;br /&gt;
        outputChatBox(v) -- outputs the float representing the current audio frame&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التغير==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element to use a players voice}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56243</id>
		<title>AR/getSoundFFTData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56243"/>
		<updated>2018-07-20T01:45:12Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Changelog */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4125|&lt;br /&gt;
This function gets the fast fourier transform data for an audio stream which is a table of floats representing the current audio frame.&lt;br /&gt;
This allows things like visualisations.&lt;br /&gt;
&lt;br /&gt;
a fast fourier transform generates a table of all the frequencies of the current audio frame which starts at the bass end of the spectrum to mids to highs in that order&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Should you have any problems there is an example resource located on the resource svn here:&lt;br /&gt;
[https://code.google.com/p/mtasa-resources/source/browse/#svn%2Ftrunk%2F%5Bgameplay%5D%2FVisualiser Visualiser]&lt;br /&gt;
&lt;br /&gt;
just type &amp;quot;startmusic mystreamurl&amp;quot; in your console and it will play on the cinema billboard near A51&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
If the element is a player, this function will use the players voice.&lt;br /&gt;
}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundFFTData ( element sound, int iSamples [, int iBands = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:'''عنصر الصوت يتم انشاؤه باستخدام [[playSound]] او [[playSound3D]].&lt;br /&gt;
*'''iSamples:''' العينات المسموح بها هي 128 و 256 و 512 و 1024 و 2048 و 4096 و 8192 و 16384&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''iBands:''' يسمح لك خيار ما بعد المعالجة بتقسيم العينات إلى العدد المطلوب من الأشرطة أو الأشرطة ، لذلك إذا كنت تحتاج إلى 5 أشرطة فقط ، فهذا يوفر الكثير من طاقة المعالج مقارنة بمحاولة القيام بذلك في Lua&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
لعرض جدول للعوام التي تمثل الإطار الصوتي الحالي. إرجاع false إذا لم يتم تشغيل الصوت بعد أو لم يتم تخزينه مؤقتًا في حالة مجموعات البث.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    local sound  = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    local data = getSoundWaveData(sound, 512) -- returns table&lt;br /&gt;
    for i, v in pairs(data) do&lt;br /&gt;
        outputChatBox(v) -- outputs the float representing the current audio frame&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==التغير==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element to use a players voice}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56242</id>
		<title>AR/getSoundFFTData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56242"/>
		<updated>2018-07-20T01:44:09Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4125|&lt;br /&gt;
This function gets the fast fourier transform data for an audio stream which is a table of floats representing the current audio frame.&lt;br /&gt;
This allows things like visualisations.&lt;br /&gt;
&lt;br /&gt;
a fast fourier transform generates a table of all the frequencies of the current audio frame which starts at the bass end of the spectrum to mids to highs in that order&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Should you have any problems there is an example resource located on the resource svn here:&lt;br /&gt;
[https://code.google.com/p/mtasa-resources/source/browse/#svn%2Ftrunk%2F%5Bgameplay%5D%2FVisualiser Visualiser]&lt;br /&gt;
&lt;br /&gt;
just type &amp;quot;startmusic mystreamurl&amp;quot; in your console and it will play on the cinema billboard near A51&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
If the element is a player, this function will use the players voice.&lt;br /&gt;
}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundFFTData ( element sound, int iSamples [, int iBands = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:'''عنصر الصوت يتم انشاؤه باستخدام [[playSound]] او [[playSound3D]].&lt;br /&gt;
*'''iSamples:''' العينات المسموح بها هي 128 و 256 و 512 و 1024 و 2048 و 4096 و 8192 و 16384&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''iBands:''' يسمح لك خيار ما بعد المعالجة بتقسيم العينات إلى العدد المطلوب من الأشرطة أو الأشرطة ، لذلك إذا كنت تحتاج إلى 5 أشرطة فقط ، فهذا يوفر الكثير من طاقة المعالج مقارنة بمحاولة القيام بذلك في Lua&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
لعرض جدول للعوام التي تمثل الإطار الصوتي الحالي. إرجاع false إذا لم يتم تشغيل الصوت بعد أو لم يتم تخزينه مؤقتًا في حالة مجموعات البث.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    local sound  = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    local data = getSoundWaveData(sound, 512) -- returns table&lt;br /&gt;
    for i, v in pairs(data) do&lt;br /&gt;
        outputChatBox(v) -- outputs the float representing the current audio frame&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element to use a players voice}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56241</id>
		<title>AR/getSoundFFTData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56241"/>
		<updated>2018-07-20T01:43:49Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Optional Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4125|&lt;br /&gt;
This function gets the fast fourier transform data for an audio stream which is a table of floats representing the current audio frame.&lt;br /&gt;
This allows things like visualisations.&lt;br /&gt;
&lt;br /&gt;
a fast fourier transform generates a table of all the frequencies of the current audio frame which starts at the bass end of the spectrum to mids to highs in that order&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Should you have any problems there is an example resource located on the resource svn here:&lt;br /&gt;
[https://code.google.com/p/mtasa-resources/source/browse/#svn%2Ftrunk%2F%5Bgameplay%5D%2FVisualiser Visualiser]&lt;br /&gt;
&lt;br /&gt;
just type &amp;quot;startmusic mystreamurl&amp;quot; in your console and it will play on the cinema billboard near A51&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
If the element is a player, this function will use the players voice.&lt;br /&gt;
}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundFFTData ( element sound, int iSamples [, int iBands = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:'''عنصر الصوت يتم انشاؤه باستخدام [[playSound]] او [[playSound3D]].&lt;br /&gt;
*'''iSamples:''' العينات المسموح بها هي 128 و 256 و 512 و 1024 و 2048 و 4096 و 8192 و 16384&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''iBands:''' يسمح لك خيار ما بعد المعالجة بتقسيم العينات إلى العدد المطلوب من الأشرطة أو الأشرطة ، لذلك إذا كنت تحتاج إلى 5 أشرطة فقط ، فهذا يوفر الكثير من طاقة المعالج مقارنة بمحاولة القيام بذلك في Lua&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table of floats representing the current audio frame.&lt;br /&gt;
Returns false if the sound is not playing yet or hasn't buffered in the&lt;br /&gt;
case of streams.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    local sound  = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    local data = getSoundWaveData(sound, 512) -- returns table&lt;br /&gt;
    for i, v in pairs(data) do&lt;br /&gt;
        outputChatBox(v) -- outputs the float representing the current audio frame&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element to use a players voice}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56240</id>
		<title>AR/getSoundFFTData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundFFTData&amp;diff=56240"/>
		<updated>2018-07-20T01:42:59Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0130|1.3.0|4125|&lt;br /&gt;
This function gets the fast fourier transform data for an audio stream which is a table of floats representing the current audio frame.&lt;br /&gt;
This allows things like visualisations.&lt;br /&gt;
&lt;br /&gt;
a fast fourier transform generates a table of all the frequencies of the current audio frame which starts at the bass end of the spectrum to mids to highs in that order&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Should you have any problems there is an example resource located on the resource svn here:&lt;br /&gt;
[https://code.google.com/p/mtasa-resources/source/browse/#svn%2Ftrunk%2F%5Bgameplay%5D%2FVisualiser Visualiser]&lt;br /&gt;
&lt;br /&gt;
just type &amp;quot;startmusic mystreamurl&amp;quot; in your console and it will play on the cinema billboard near A51&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
If the element is a player, this function will use the players voice.&lt;br /&gt;
}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getSoundFFTData ( element sound, int iSamples [, int iBands = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:'''عنصر الصوت يتم انشاؤه باستخدام [[playSound]] او [[playSound3D]].&lt;br /&gt;
*'''iSamples:''' العينات المسموح بها هي 128 و 256 و 512 و 1024 و 2048 و 4096 و 8192 و 16384&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''iBands:''' Post processing option allows you to split the samples into the desired amount of bands or bars so if you only need 5 bars this saves a lot of cpu power compared to trying to do it in Lua&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table of floats representing the current audio frame.&lt;br /&gt;
Returns false if the sound is not playing yet or hasn't buffered in the&lt;br /&gt;
case of streams.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;playsound&amp;quot;,&lt;br /&gt;
function () &lt;br /&gt;
    local sound  = playSound(&amp;quot;wasted.mp3&amp;quot;)&lt;br /&gt;
    local data = getSoundWaveData(sound, 512) -- returns table&lt;br /&gt;
    for i, v in pairs(data) do&lt;br /&gt;
        outputChatBox(v) -- outputs the float representing the current audio frame&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element to use a players voice}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundBPM&amp;diff=56239</id>
		<title>AR/getSoundBPM</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundBPM&amp;diff=56239"/>
		<updated>2018-07-20T01:39:35Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0131|1.3.0|4145|&lt;br /&gt;
This function gets the beats per minute of a specific [[sound]] element.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getSoundBPM( element sound )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' الصوت المحدد يمكنك استخدام الاصوات  [[playSound]] او [[playSound3D]]&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
لعرض الاصوات في الدقيقة من الصوت المحدد&lt;br /&gt;
&lt;br /&gt;
==Example== &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 bpm ()&lt;br /&gt;
    -- Long version (might be more understandable as example)&lt;br /&gt;
    sound = playSound ( &amp;quot;song.mp3&amp;quot; ) -- Play the song&lt;br /&gt;
    beats = getSoundBPM ( sound ) -- Get the beats per minute of the song&lt;br /&gt;
    outputChatBox ( &amp;quot;Long code version: &amp;quot; .. beats ) -- Output the beats to the chat box&lt;br /&gt;
&lt;br /&gt;
    -- Short version + Would save some memory&lt;br /&gt;
    outputChatBox ( &amp;quot;Short code version: &amp;quot; .. getSoundBPM ( playSound ( &amp;quot;song.mp3&amp;quot; ) ) )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;bpm&amp;quot;, bpm )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.3.0-9.04162|}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getSoundBPM&amp;diff=56238</id>
		<title>AR/getSoundBPM</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getSoundBPM&amp;diff=56238"/>
		<updated>2018-07-20T01:38:40Z</updated>

		<summary type="html">&lt;p&gt;Max: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0131|1.3.0|4145|&lt;br /&gt;
This function gets the beats per minute of a specific [[sound]] element.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getSoundBPM( element sound )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' الصوت المحدد يمكنك استخدام الاصوات  [[playSound]] او [[playSound3D]]&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the beats per minute of the given sound.&lt;br /&gt;
&lt;br /&gt;
==Example== &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 bpm ()&lt;br /&gt;
    -- Long version (might be more understandable as example)&lt;br /&gt;
    sound = playSound ( &amp;quot;song.mp3&amp;quot; ) -- Play the song&lt;br /&gt;
    beats = getSoundBPM ( sound ) -- Get the beats per minute of the song&lt;br /&gt;
    outputChatBox ( &amp;quot;Long code version: &amp;quot; .. beats ) -- Output the beats to the chat box&lt;br /&gt;
&lt;br /&gt;
    -- Short version + Would save some memory&lt;br /&gt;
    outputChatBox ( &amp;quot;Short code version: &amp;quot; .. getSoundBPM ( playSound ( &amp;quot;song.mp3&amp;quot; ) ) )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;bpm&amp;quot;, bpm )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.3.0-9.04162|}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getRadioChannel&amp;diff=56237</id>
		<title>AR/getRadioChannel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getRadioChannel&amp;diff=56237"/>
		<updated>2018-07-20T01:37:07Z</updated>

		<summary type="html">&lt;p&gt;Max: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
 . تحضر هذه الدالة الاي دي لقناة الراديو   &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getRadioChannel ( )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
. الاي دي لقناة الراديو&lt;br /&gt;
{{SoundID}}&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
. هذا المثال يكتب اسم قناة الراديو الحالية في الشات     &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;
addCommandHandler ( &amp;quot;getradio&amp;quot;,  -- الكلمة  &lt;br /&gt;
    function () -- الفاكشن&lt;br /&gt;
        outputChatBox ( &amp;quot;You're currently listening to &amp;quot; .. getRadioChannelName ( getRadioChannel() ) .. &amp;quot;!&amp;quot; )&lt;br /&gt;
    end --  انهاء الفاكشن&lt;br /&gt;
) -- انهاء اليفينت&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
&lt;br /&gt;
{{AR/Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[EN:getRadioChannel]]&lt;br /&gt;
[[RU:GetRadioChannel]]&lt;br /&gt;
[[PL:getRadioChannel]]&lt;/div&gt;</summary>
		<author><name>Max</name></author>
	</entry>
</feed>