فهرست منبع

Clarify AudioStream buffer size units;

bjorn 7 سال پیش
والد
کامیت
b8961ddd41
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      api/init.lua
  2. 1 1
      api/lovr/data/newAudioStream.lua

+ 2 - 2
api/init.lua

@@ -1892,7 +1892,7 @@ return {
                 {
                   name = "bufferSize",
                   type = "number",
-                  description = "The size of the stream's audio buffer.",
+                  description = "The size of the stream's audio buffer, in samples.",
                   default = "4096"
                 }
               },
@@ -1914,7 +1914,7 @@ return {
                 {
                   name = "bufferSize",
                   type = "number",
-                  description = "The size of the stream's audio buffer.",
+                  description = "The size of the stream's audio buffer, in samples.",
                   default = "4096"
                 }
               },

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

@@ -13,7 +13,7 @@ return {
     bufferSize = {
       type = 'number',
       default = '4096',
-      description = 'The size of the stream\'s audio buffer.'
+      description = 'The size of the stream\'s audio buffer, in samples.'
     }
   },
   returns = {