getFrameCount.lua 587 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Get the number of frames in the Sound.',
  3. description = [[
  4. Returns the number of frames in the Sound. A frame stores one sample for each channel.
  5. ]],
  6. arguments = {},
  7. returns = {
  8. frames = {
  9. type = 'number',
  10. description = 'The number of frames in the Sound.'
  11. }
  12. },
  13. variants = {
  14. {
  15. arguments = {},
  16. returns = { 'frames' }
  17. }
  18. },
  19. notes = 'For streams, this returns the number of frames in the stream\'s buffer.',
  20. related = {
  21. 'Sound:getDuration',
  22. 'Sound:getSampleCount',
  23. 'Sound:getChannelCount'
  24. }
  25. }