getSampleRate.lua 475 B

1234567891011121314151617181920
  1. return {
  2. summary = 'Get the sample rate of the Sound.',
  3. description = [[
  4. Returns the sample rate of the Sound, in Hz. This is the number of frames that are played every
  5. second. It's usually a high number like 48000.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. frequency = {
  10. type = 'number',
  11. description = 'The number of frames per second in the Sound.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'frequency' }
  18. }
  19. }
  20. }