Source:isEffectEnabled

Returns whether a given Effect is enabled for the Source.

enabled = Source:isEffectEnabled(effect)

Arguments

NameTypeDescription
effectEffectThe effect.

Returns

NameTypeDescription
enabledbooleanWhether the effect is enabled.

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 (this function will still report it as enabled).

TODO: expose a table of supported effects for spatializers in docs or from Lua.

See also