getDuration.lua 527 B

123456789101112131415161718192021222324252627
  1. return {
  2. tag = 'sourcePlayback',
  3. summary = 'Get the duration of the Source.',
  4. description = 'Returns the duration of the Source.',
  5. arguments = {
  6. unit = {
  7. type = 'TimeUnit',
  8. default = [['seconds']],
  9. description = 'The unit to return.'
  10. }
  11. },
  12. returns = {
  13. duration = {
  14. type = 'number',
  15. description = 'The duration of the Source.'
  16. }
  17. },
  18. variants = {
  19. {
  20. arguments = { 'unit' },
  21. returns = { 'duration' }
  22. }
  23. },
  24. related = {
  25. 'Sound:getDuration'
  26. }
  27. }