AR/setSoundSpeed: Difference between revisions
Jump to navigation
Jump to search
IBlack.NexT (talk | contribs) (→Syntax) |
IBlack.NexT (talk | contribs) |
||
Line 6: | Line 6: | ||
<syntaxhighlight lang="lua">bool setSoundSpeed ( element theSound, float speed )</syntaxhighlight> | <syntaxhighlight lang="lua">bool setSoundSpeed ( element theSound, float speed )</syntaxhighlight> | ||
=== | ===العناصر المطلوبة=== | ||
*'''theSound: ( mta.mp3 ) أسم ملف الصوت الذي تريد أن تقوم بتسرع صوته مثال | *'''theSound: ( mta.mp3 ) أسم ملف الصوت الذي تريد أن تقوم بتسرع صوته مثال | ||
*'''speed: ! قـوة سرعة الصوت | *'''speed: ! قـوة سرعة الصوت |
Revision as of 15:36, 1 May 2015
This function can be used to change the playback speed of the specified sound element.
Syntax
bool setSoundSpeed ( element theSound, float speed )
العناصر المطلوبة
- theSound: ( mta.mp3 ) أسم ملف الصوت الذي تريد أن تقوم بتسرع صوته مثال
- speed: ! قـوة سرعة الصوت
Returns
Returns true if the sound element playback speed was successfully changed, false otherwise.
Example
function soundFunc() sound = playSound ( "/sounds/jizzy.mp3",true) -- Let's play a sound setSoundSpeed ( sound, 1.2 ) -- And it will be a little bit faster ! end addCommandHandler("play",soundFunc)
أنظر أيضاً
- getSoundBufferLength
- getSoundEffects
- getSoundFFTData
- getSoundLength
- getSoundLevelData
- getSoundMaxDistance