From 805f972c424805c361a7cc12d1752c7a23d533f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 31 May 2022 01:03:33 +0800 Subject: update API for `love2d` and `lovr` --- meta/3rd/love2d/library/love.sound.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/3rd/love2d/library/love.sound.lua') 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 -- cgit v1.2.3