AR/setSoundSpeed: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} This function can be used to change the playback speed of the specified sound element. ==Syntax== <syntaxhighlight lang="lua">bool setSoundSpeed ( element t...") |
IBlack.NexT (talk | contribs) |
||
Line 7: | Line 7: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theSound:''' | *'''theSound:''' ( mta.mp3 )'''أسم ملف الصوت الذي تريد أن تقوم بتسرع صوته مثال | ||
*'''speed:''' A [[float]] | *'''speed:''' A [[float]] ! أختيار قوة سـرعة الصوت | ||
===Returns=== | ===Returns=== |
Revision as of 15:32, 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 )
Required Arguments
- theSound: ( mta.mp3 )أسم ملف الصوت الذي تريد أن تقوم بتسرع صوته مثال
- speed: A float ! أختيار قوة سـرعة الصوت
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