isCompressed.lua 650 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Check if the Sound is compressed.',
  3. description = [[
  4. Returns whether the Sound is compressed. Compressed sounds are loaded from compressed audio
  5. formats like MP3 and OGG. They use a lot less memory but require some extra CPU work during
  6. playback. Compressed sounds can not be modified using `Sound:setFrames`.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. compressed = {
  11. type = 'boolean',
  12. description = 'Whether the Sound is compressed.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'compressed' }
  19. }
  20. },
  21. related = {
  22. 'Sound:isStream',
  23. 'lovr.data.newSound'
  24. }
  25. }