setSoundEffectParameter
Client-side
Server-side
Shared
This function sets the parameter of a sound effect. See effects parameters.
OOP Syntax Help! I don't understand this!
- Method: sound:setEffectParameter(...)
Syntax
bool setSoundEffectParameter ( sound/player theSound, string effectName, string effectParam, var paramValue )
Required Arguments
- theSound: The sound element.
- effectName:
The name of the effect whose parameter you want to change
- gargle
- compressor
- echo
- i3dl2reverb
- distortion
- chorus
- parameq
- reverb
- flanger
- effectParam: The parameter name.
- paramValue: The parameter value.
Returns
- bool: result
Returns true if effect have been set successfully, false otherwise.
Code Examples
client
--An example via a timerlocal mySound = playSound("discoSound.mp3", 0, 0, 10)setSoundEffectEnabled(mySound, "echo", true)
setTimer(function() setSoundEffectParameter(mySound, "echo", "wetDryMix", 80)end, 1, 1)
Changelog
See Also
Audio Functions
- getRadioChannelName
- getRadioChannel
- getSoundBPM
- getSFXStatus
- getSoundBufferLength
- getSoundEffectParameters
- getSoundEffects
- getSoundFFTData
- getSoundLevelData
- getSoundLength
- getSoundMetaTags
- getSoundMaxDistance
- getSoundMinDistance
- getSoundPan
- getSoundPosition
- getSoundProperties
- getSoundSpeed
- getSoundVolume
- getSoundWaveData
- isSoundLooped
- isSoundPanningEnabled
- isSoundPaused
- playSFX
- playSFX3D
- playSound
- playSound3D
- setRadioChannel
- setSoundEffectEnabled
- setSoundEffectParameter
- setSoundMaxDistance
- setSoundLooped
- setSoundMinDistance
- setSoundPan
- setSoundPanningEnabled
- setSoundPaused
- setSoundPosition
- setSoundProperties
- setSoundSpeed
- setSoundVolume
- stopSound