Browse Source

Fix newSource;

bjorn 4 years ago
parent
commit
d6d0741b87
2 changed files with 7 additions and 3 deletions
  1. 6 2
      api/init.lua
  2. 1 1
      api/lovr/audio/newSource.lua

+ 6 - 2
api/init.lua

@@ -1324,7 +1324,11 @@ return {
             },
             },
             {
             {
               arguments = {
               arguments = {
-                nil,
+                {
+                  name = "sound",
+                  type = "Sound",
+                  description = "The Sound containing raw audio samples to play."
+                },
                 {
                 {
                   name = "options",
                   name = "options",
                   type = "table",
                   type = "table",
@@ -1338,7 +1342,7 @@ return {
                     {
                     {
                       name = "effects",
                       name = "effects",
                       type = "table",
                       type = "table",
-                      description = "            A table of `Effect`s to enable.  Keys can be integers (list) or effect names (map), or a\n            combination of both.  The special value `false` can be used to completely disable\n            effects, bypassing the spatializer entirely.\n          "
+                      description = "A table of `Effect`s to enable.  Keys can be integers (list) or effect names (map), or a combination of both.  The special value `false` can be used to completely disable effects, bypassing the spatializer entirely."
                     }
                     }
                   }
                   }
                 }
                 }

+ 1 - 1
api/lovr/audio/newSource.lua

@@ -11,7 +11,7 @@ return {
       type = 'Blob',
       type = 'Blob',
       description = 'The Blob containing the Source data.'
       description = 'The Blob containing the Source data.'
     },
     },
-    soundData = {
+    sound = {
       type = 'Sound',
       type = 'Sound',
       description = 'The Sound containing raw audio samples to play.'
       description = 'The Sound containing raw audio samples to play.'
     },
     },