Browse Source

Fix newSoundData channels arg;

bjorn 5 years ago
parent
commit
22a65b5603
2 changed files with 7 additions and 1 deletions
  1. 6 0
      api/init.lua
  2. 1 1
      api/lovr/data/newSoundData.lua

+ 6 - 0
api/init.lua

@@ -2842,6 +2842,12 @@ return {
                   type = "number",
                   description = "The number of bits stored for each sample.",
                   default = "16"
+                },
+                {
+                  name = "channels",
+                  type = "number",
+                  description = "The number of channels in the sound (1 for mono, 2 for stereo).",
+                  default = "2"
                 }
               },
               returns = {

+ 1 - 1
api/lovr/data/newSoundData.lua

@@ -46,7 +46,7 @@ return {
       returns = { 'soundData' }
     },
     {
-      arguments = { 'samples', 'sampleRate', 'bitDepth', 'channelCount' },
+      arguments = { 'samples', 'sampleRate', 'bitDepth', 'channels' },
       returns = { 'soundData' }
     },
     {