getCapacity.lua 706 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Get the number of frames that can be written to the Sound.',
  3. description = [[
  4. Returns the number of frames that can be written to the Sound. For stream sounds, this is the
  5. number of frames that can be written without overwriting existing data. For normal sounds, this
  6. returns the same value as `Sound:getFrameCount`.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. capacity = {
  11. type = 'number',
  12. description = 'The number of frames that can be written to the Sound.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'capacity' }
  19. }
  20. },
  21. related = {
  22. 'Sound:getFrameCount',
  23. 'Sound:getSampleCount',
  24. 'Source:getDuration'
  25. }
  26. }