Browse Source

Fix audio docs;

bjorn 4 years ago
parent
commit
dd1e698878

+ 1 - 1
api/lovr/audio/Source/getFalloff.lua

@@ -1,7 +1,7 @@
 return {
   summary = 'Get the falloff parameters for the Source.',
   description = [[
-    Returns parameters that control how the volume of the Source falls of with distance.
+    Returns parameters that control how the volume of the Source falls off with distance.
   ]],
   arguments = {},
   returns = {

+ 1 - 1
api/lovr/audio/Source/setFalloff.lua

@@ -1,7 +1,7 @@
 return {
   summary = 'Set the falloff parameters for the Source.',
   description = [[
-    Sets parameters that control how the volume of the Source falls of with distance.
+    Sets parameters that control how the volume of the Source falls off with distance.
 
     Only mono sources support positional falloff.  Using this function on a stereo Source will cause
     an error.

+ 2 - 2
api/lovr/audio/setVolume.lua

@@ -4,13 +4,13 @@ return {
   description = [[
     Sets the master volume.  The volume of all Sources will be multiplied by this factor.
   ]],
-  arguments = {},
-  returns = {
+  arguments = {
     {
       name = 'volume',
       type = 'number',
       description = 'The master volume.'
     }
   },
+  returns = {},
   notes = 'The default is 1.0.'
 }