summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library/love.sound.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-31 01:03:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-31 01:03:33 +0800
commit805f972c424805c361a7cc12d1752c7a23d533f6 (patch)
tree6b2f078a3ebd05ed14066b65adf7772d1f3c5536 /meta/3rd/love2d/library/love.sound.lua
parent7162bc37691916125ba5065c476c866693a39216 (diff)
downloadlua-language-server-805f972c424805c361a7cc12d1752c7a23d533f6.zip
update API for `love2d` and `lovr`
Diffstat (limited to 'meta/3rd/love2d/library/love.sound.lua')
-rw-r--r--meta/3rd/love2d/library/love.sound.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/3rd/love2d/library/love.sound.lua b/meta/3rd/love2d/library/love.sound.lua
index 536336aa..c41d3380 100644
--- a/meta/3rd/love2d/library/love.sound.lua
+++ b/meta/3rd/love2d/library/love.sound.lua
@@ -9,7 +9,7 @@ love.sound = {}
---
---Attempts to find a decoder for the encoded sound data in the specified file.
---
----@overload fun(filename: string, buffer: number):love.Decoder
+---@overload fun(filename: string, buffer?: number):love.Decoder
---@param file love.File # The file with encoded sound data.
---@param buffer? number # The size of each decoded chunk, in bytes.
---@return love.Decoder decoder # A new Decoder object.
@@ -22,7 +22,7 @@ function love.sound.newDecoder(file, buffer) end
---
---@overload fun(file: love.File):love.SoundData
---@overload fun(decoder: love.Decoder):love.SoundData
----@overload fun(samples: number, rate: number, bits: number, channels: number):love.SoundData
+---@overload fun(samples: number, rate?: number, bits?: number, channels?: number):love.SoundData
---@param filename string # The file name of the file to load.
---@return love.SoundData soundData # A new SoundData object.
function love.sound.newSoundData(filename) end