Jelajahi Sumber

Slight clarification to Sound:getCapacity;

bjorn 2 minggu lalu
induk
melakukan
411463ea1e
2 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      api/init.lua
  2. 2 2
      api/lovr/data/Sound/getCapacity.lua

+ 1 - 1
api/init.lua

@@ -7482,7 +7482,7 @@ return {
             {
             {
               name = "getCapacity",
               name = "getCapacity",
               summary = "Get the number of frames that can be written to the Sound.",
               summary = "Get the number of frames that can be written to the Sound.",
-              description = "Returns the number of frames that can be written to the Sound.  For stream sounds, this is the number of frames that can be written without overwriting existing data.  For normal sounds, this returns the same value as `Sound:getFrameCount`.",
+              description = "Returns the number of frames that can be written to the Sound.  For stream sounds, this is the number of frames that can currently be written without overwriting existing data.  For normal sounds, this returns the same value as `Sound:getFrameCount`.",
               key = "Sound:getCapacity",
               key = "Sound:getCapacity",
               module = "lovr.data",
               module = "lovr.data",
               related = {
               related = {

+ 2 - 2
api/lovr/data/Sound/getCapacity.lua

@@ -2,8 +2,8 @@ return {
   summary = 'Get the number of frames that can be written to the Sound.',
   summary = 'Get the number of frames that can be written to the Sound.',
   description = [[
   description = [[
     Returns the number of frames that can be written to the Sound.  For stream sounds, this is the
     Returns the number of frames that can be written to the Sound.  For stream sounds, this is the
-    number of frames that can be written without overwriting existing data.  For normal sounds, this
-    returns the same value as `Sound:getFrameCount`.
+    number of frames that can currently be written without overwriting existing data.  For normal
+    sounds, this returns the same value as `Sound:getFrameCount`.
   ]],
   ]],
   arguments = {},
   arguments = {},
   returns = {
   returns = {