getFormat.lua 417 B

123456789101112131415161718192021
  1. return {
  2. summary = 'Get the sample format of the Sound.',
  3. description = 'Returns the sample format of the Sound.',
  4. arguments = {},
  5. returns = {
  6. format = {
  7. type = 'SampleFormat',
  8. description = 'The data type of each sample.'
  9. }
  10. },
  11. variants = {
  12. {
  13. arguments = {},
  14. returns = { 'format' }
  15. }
  16. },
  17. related = {
  18. 'Sound:getChannelLayout',
  19. 'Sound:getSampleRate'
  20. }
  21. }