isStarted.lua 503 B

123456789101112131415161718192021222324
  1. return {
  2. tag = 'devices',
  3. summary = 'Check if an audio device is started.',
  4. description = 'Returns whether an audio device is started.',
  5. arguments = {
  6. {
  7. name = 'type',
  8. type = 'AudioType',
  9. default = [['playback']],
  10. description = 'The type of device to check.'
  11. }
  12. },
  13. returns = {
  14. {
  15. name = 'started',
  16. type = 'boolean',
  17. description = 'Whether the device is active.'
  18. }
  19. },
  20. related = {
  21. 'lovr.audio.start',
  22. 'lovr.audio.stop'
  23. }
  24. }