Effect.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. return {
  2. summary = 'Different types of Source effects.',
  3. description = 'Different types of effects that can be applied with `Source:setEffectEnabled`.',
  4. values = {
  5. {
  6. name = 'absorption',
  7. description = 'Models absorption as sound travels through the air, water, etc.'
  8. },
  9. {
  10. name = 'falloff',
  11. description = 'Decreases audio volume with distance (1 / max(distance, 1)).'
  12. },
  13. {
  14. name = 'occlusion',
  15. description = 'Causes audio to drop off when the Source is occluded by geometry.'
  16. },
  17. {
  18. name = 'reverb',
  19. description = 'Models reverb caused by audio bouncing off of geometry.'
  20. },
  21. {
  22. name = 'spatialization',
  23. description = 'Spatializes the Source using either simple panning or an HRTF.'
  24. },
  25. {
  26. name = 'transmission',
  27. description = 'Causes audio to be heard through walls when occluded, based on audio materials.'
  28. }
  29. },
  30. notes = [[
  31. The active spatializer will determine which effects are supported. If an unsupported effect is
  32. enabled on a Source, no error will be reported. Instead, it will be silently ignored.
  33. TODO: expose a table of supported effects for spatializers in docs or from Lua.
  34. ]]
  35. }