getDuration.lua 393 B

12345678910111213141516171819
  1. return {
  2. summary = 'Get the duration of the Source.',
  3. description = 'Returns the duration of the Source.',
  4. arguments = {
  5. {
  6. name = 'unit',
  7. type = 'TimeUnit',
  8. default = [['seconds']],
  9. description = 'The unit to return.'
  10. }
  11. },
  12. returns = {
  13. {
  14. name = 'duration',
  15. type = 'number',
  16. description = 'The duration of the Source.'
  17. }
  18. }
  19. }