isEffectEnabled.lua 727 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Check if an effect is enabled.',
  3. description = 'Returns whether a given `Effect` is enabled for the Source.',
  4. arguments = {
  5. {
  6. name = 'effect',
  7. type = 'Effect',
  8. description = 'The effect.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'enabled',
  14. type = 'boolean',
  15. description = 'Whether the effect is enabled.'
  16. }
  17. },
  18. notes = [[
  19. The active spatializer will determine which effects are supported. If an unsupported effect is
  20. enabled on a Source, no error will be reported. Instead, it will be silently ignored (this
  21. function will still report it as enabled).
  22. TODO: expose a table of supported effects for spatializers in docs or from Lua.
  23. ]]
  24. }