getSpatializer.lua 613 B

12345678910111213141516171819202122
  1. return {
  2. tag = 'listener',
  3. summary = 'Get the name of the active spatializer',
  4. description = [[
  5. Returns the name of the active spatializer (`simple`, `oculus`, or `phonon`).
  6. The `t.audio.spatializer` setting in `lovr.conf` can be used to express a preference for a
  7. particular spatializer. If it's `nil`, all spatializers will be tried in the following order:
  8. `phonon`, `oculus`, `simple`.
  9. ]],
  10. arguments = {},
  11. returns = {
  12. {
  13. name = 'spatializer',
  14. type = 'string',
  15. description = 'The name of the active spatializer.'
  16. }
  17. },
  18. related = {
  19. 'lovr.conf'
  20. }
  21. }