SampleFormat.lua 456 B

123456789101112131415161718
  1. return {
  2. summary = 'Different data types for samples in a Sound.',
  3. description = 'Sounds can store audio samples as 16 bit integers or 32 bit floats.',
  4. values = {
  5. {
  6. name = 'f32',
  7. description = '32 bit floating point samples (between -1.0 and 1.0).'
  8. },
  9. {
  10. name = 'i16',
  11. description = '16 bit integer samples (between -32768 and 32767).'
  12. }
  13. },
  14. related = {
  15. 'lovr.data.newSound',
  16. 'Sound:getFormat'
  17. }
  18. }