summaryrefslogtreecommitdiff
path: root/meta/3rd/lovr/library/lovr.data.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-02-08 21:57:56 +0800
committersumneko <sumneko@hotmail.com>2022-02-08 21:57:56 +0800
commit007e8637827b75d95f188df0f1c3173cabc53a8b (patch)
tree69fd9f98ba75099b97080c95001f3d6452de49d3 /meta/3rd/lovr/library/lovr.data.lua
parentee476c7f4fb29ab6cf6e77205745428c0e2a8601 (diff)
downloadlua-language-server-007e8637827b75d95f188df0f1c3173cabc53a8b.zip
fix #941
Diffstat (limited to 'meta/3rd/lovr/library/lovr.data.lua')
-rw-r--r--meta/3rd/lovr/library/lovr.data.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/3rd/lovr/library/lovr.data.lua b/meta/3rd/lovr/library/lovr.data.lua
index aca66f8f..9c34b189 100644
--- a/meta/3rd/lovr/library/lovr.data.lua
+++ b/meta/3rd/lovr/library/lovr.data.lua
@@ -307,9 +307,9 @@ function Sound:getFrameCount() end
---
---Reads frames from the Sound into a table, Blob, or another Sound.
---
----@overload fun(t: table, count: number, srcOffset: number, dstOffset: number):table, number
----@overload fun(blob: lovr.Blob, count: number, srcOffset: number, dstOffset: number):number
----@overload fun(sound: lovr.Sound, count: number, srcOffset: number, dstOffset: number):number
+---@overload fun(self: lovr.Sound, t: table, count: number, srcOffset: number, dstOffset: number):table, number
+---@overload fun(self: lovr.Sound, blob: lovr.Blob, count: number, srcOffset: number, dstOffset: number):number
+---@overload fun(self: lovr.Sound, sound: lovr.Sound, count: number, srcOffset: number, dstOffset: number):number
---@param count? number # The number of frames to read. If nil, reads as many frames as possible.
Compressed sounds will automatically be decoded.
@@ -347,8 +347,8 @@ function Sound:isStream() end
---
---Writes frames to the Sound.
---
----@overload fun(blob: lovr.Blob, count: number, dstOffset: number, srcOffset: number):number
----@overload fun(sound: lovr.Sound, count: number, dstOffset: number, srcOffset: number):number
+---@overload fun(self: lovr.Sound, blob: lovr.Blob, count: number, dstOffset: number, srcOffset: number):number
+---@overload fun(self: lovr.Sound, sound: lovr.Sound, count: number, dstOffset: number, srcOffset: number):number
---@param t table # A table containing frames to write.
---@param count? number # How many frames to write. If nil, writes as many as possible.
---@param dstOffset? number # A frame offset to apply when writing the frames.