tell.lua 598 B

12345678910111213141516171819202122232425
  1. return {
  2. tag = 'sourcePlayback',
  3. summary = 'Get the playback position of the Source.',
  4. description = 'Returns the current playback position of the Source.',
  5. arguments = {
  6. unit = {
  7. type = 'TimeUnit',
  8. default = [['seconds']],
  9. description = 'The unit to return.'
  10. }
  11. },
  12. returns = {
  13. position = {
  14. type = 'number',
  15. description = 'The current playback position.'
  16. }
  17. },
  18. variants = {
  19. {
  20. arguments = { 'unit' },
  21. returns = { 'position' }
  22. }
  23. },
  24. notes = 'The return value for Sources backed by a stream `Sound` has no meaning.'
  25. }