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…') |
No edit summary |
||
Line 16: | Line 16: | ||
<section name="Client" class="client" show="true"> | <section name="Client" class="client" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function sound() | |||
sound = playSound ( "/sounds/jizzy.mp3",true) | |||
setSoundSpeed ( sound, 1.2 ) | |||
end | |||
addCommandHandler("play",sound) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | </section> |
Revision as of 14:57, 2 April 2011
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: The sound element which volume you want to modify.
- speed: A floating point number representing the desired sound playback speed.
Returns
Returns true if the sound element playback speed was successfully changed, false otherwise.
Example
Click to collapse [-]
Clientfunction sound() sound = playSound ( "/sounds/jizzy.mp3",true) setSoundSpeed ( sound, 1.2 ) end addCommandHandler("play",sound)
See Also
- getRadioChannel
- getRadioChannelName
- getSFXStatus
- getSoundBPM
- getSoundBufferLength
- getSoundEffectParameters
- getSoundEffects
- getSoundFFTData
- getSoundLength
- getSoundLevelData
- getSoundMaxDistance
- getSoundMetaTags
- getSoundMinDistance
- getSoundPan
- getSoundPosition
- getSoundProperties
- getSoundSpeed
- getSoundVolume
- getSoundWaveData
- isSoundLooped
- isSoundPanningEnabled
- isSoundPaused
- playSFX3D
- playSFX
- playSound3D
- playSound
- setRadioChannel
- setSoundEffectEnabled
- setSoundEffectParameter
- setSoundLooped
- setSoundMaxDistance
- setSoundMinDistance
- setSoundPan
- setSoundPanningEnabled
- setSoundPaused
- setSoundPosition
- setSoundProperties
- setSoundSpeed
- setSoundVolume
- stopSound
- Shared
- playSoundFrontEnd