HU/setSoundSpeed: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
Ez a funkció a meghatározott [[sound|hangelem]] lejátszási sebességének megváltoztatására használható. | Ez a funkció a meghatározott [[sound|hangelem]] lejátszási sebességének megváltoztatására használható. | ||
== | ==Szintaxis== | ||
<syntaxhighlight lang="lua">bool setSoundSpeed ( element theSound, float speed )</syntaxhighlight> | <syntaxhighlight lang="lua">bool setSoundSpeed ( element theSound, float speed )</syntaxhighlight> | ||
{{OOP||[[sound]]:setSpeed|speed|getSoundSpeed}} | {{OOP||[[sound]]:setSpeed|speed|getSoundSpeed}} | ||
=== | ===Kötelező argumentumok=== | ||
*'''theSound:''' the [[sound]] [[element]] which volume you want to modify. | *'''theSound:''' the [[sound]] [[element]] which volume you want to modify. | ||
*'''speed:''' a [[float]]ing point number representing the desired sound playback speed. | *'''speed:''' a [[float]]ing point number representing the desired sound playback speed. | ||
=== | ===Visszaadott érték=== | ||
Returns ''true'' if the [[sound]] element playback speed was successfully changed, ''false'' otherwise. | Returns ''true'' if the [[sound]] element playback speed was successfully changed, ''false'' otherwise. | ||
== | ==Példa== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function soundFunc() | function soundFunc() | ||
Line 22: | Line 22: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | ==Lásd még== | ||
{{Client_audio_functions hu}} | {{Client_audio_functions hu}} | ||
[[en:setSoundSpeed]] | [[en:setSoundSpeed]] | ||
[[ar:setSoundSpeed]] | [[ar:setSoundSpeed]] | ||
==Fordította== | |||
Surge |
Revision as of 12:48, 22 July 2018
Ez a funkció a meghatározott hangelem lejátszási sebességének megváltoztatására használható.
Szintaxis
bool setSoundSpeed ( element theSound, float speed )
OOP Syntax Help! I don't understand this!
- Method: sound:setSpeed(...)
- Variable: .speed
- Counterpart: getSoundSpeed
Kötelező argumentumok
- theSound: the sound element which volume you want to modify.
- speed: a floating point number representing the desired sound playback speed.
Visszaadott érték
Returns true if the sound element playback speed was successfully changed, false otherwise.
Példa
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)
Lásd még
- HU/getRadioChannel
- HU/getRadioChannelName
- HU/getSFXStatus
- HU/getSoundBPM
- HU/getSoundEffects
- HU/getSoundFFTData
- HU/getSoundLength
- HU/getSoundLevelData
- HU/getSoundMaxDistance
- HU/getSoundMetaTags
- HU/getSoundMinDistance
- HU/getSoundPan
- HU/getSoundPosition
- HU/getSoundProperties
- HU/getSoundSpeed
- HU/getSoundVolume
- HU/getSoundWaveData
- HU/isSoundPanningEnabled
- HU/isSoundPaused
- HU/playSFX
- HU/playSFX3D
- HU/playSound
- HU/playSound3D
- HU/playSoundFrontEnd
- HU/setRadioChannel
- HU/setSoundEffectEnabled
- HU/setSoundMaxDistance
- HU/setSoundMinDistance
- HU/setSoundPan
- HU/setSoundPanningEnabled
- HU/setSoundPaused
- HU/setSoundPosition
- HU/setSoundProperties
- HU/setSoundSpeed
- HU/setSoundVolume
- HU/stopSound
Fordította
Surge