Source:setEffectEnabled
EditEnables or disables an effect on the Source.
Source:setEffectEnabled(effect, enable)
Arguments
Name | Type | Description |
effect | Effect | The effect. |
enable | boolean | Whether the effect should be enabled. |
Returns
Nothing
Notes
The active spatializer will determine which effects are supported. If an unsupported effect is enabled on a Source, no error will be reported. Instead, it will be silently ignored. See lovr.audio.getSpatializer
for a table showing the effects supported by each spatializer.
Calling this function on a non-spatial Source will throw an error.