ChannelLayout.lua 815 B

12345678910111213141516171819202122232425262728293031
  1. return {
  2. summary = 'Different channel layouts for Sounds.',
  3. description = [[
  4. Sounds can have different numbers of channels, and those channels can map to various speaker
  5. layouts.
  6. ]],
  7. values = {
  8. {
  9. name = 'mono',
  10. description = '1 channel.'
  11. },
  12. {
  13. name = 'stereo',
  14. description = [[
  15. 2 channels. The first channel is for the left speaker and the second is for the right.
  16. ]]
  17. },
  18. {
  19. name = 'ambisonic',
  20. description = [[
  21. 4 channels. Ambisonic channels don't map directly to speakers but instead represent
  22. directions in 3D space, sort of like the images of a skybox. Currently, ambisonic sounds
  23. can only be loaded, not played.
  24. ]]
  25. }
  26. },
  27. related = {
  28. 'lovr.data.newSound',
  29. 'Sound:getFormat'
  30. }
  31. }