From 007e8637827b75d95f188df0f1c3173cabc53a8b Mon Sep 17 00:00:00 2001 From: sumneko Date: Tue, 8 Feb 2022 21:57:56 +0800 Subject: fix #941 --- meta/3rd/lovr/library/lovr.data.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'meta/3rd/lovr/library/lovr.data.lua') 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. -- cgit v1.2.3