summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library/love.sound.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-20 19:19:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-20 19:19:39 +0800
commit8e3de6b5653ea7087a248b3eb2a4aea6067688b5 (patch)
treee99d12883c1fced1a3fb67f2039ac0475dacb79d /meta/3rd/love2d/library/love.sound.lua
parent9de98dc808dc01fbef9e4abfe60d2d76f7691c13 (diff)
downloadlua-language-server-8e3de6b5653ea7087a248b3eb2a4aea6067688b5.zip
update
Diffstat (limited to 'meta/3rd/love2d/library/love.sound.lua')
-rw-r--r--meta/3rd/love2d/library/love.sound.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/3rd/love2d/library/love.sound.lua b/meta/3rd/love2d/library/love.sound.lua
index 1dcb7b72..8ca9fbbf 100644
--- a/meta/3rd/love2d/library/love.sound.lua
+++ b/meta/3rd/love2d/library/love.sound.lua
@@ -1,5 +1,6 @@
---@meta
+-- version: nil
---@class love.sound
love.sound = {}
@@ -20,6 +21,9 @@ function love.sound.newDecoder(file, buffer) end
---@return love.SoundData soundData # A new SoundData object.
function love.sound.newSoundData(filename) end
+---
+---An object which can gradually decode a sound file.
+---
---@class love.Decoder: love.Object
local Decoder = {}
@@ -55,6 +59,11 @@ function Decoder:getDuration() end
---@return number rate # Number of samples per second.
function Decoder:getSampleRate() end
+---
+---Contains raw audio samples.
+---
+---You can not play SoundData back directly. You must wrap a Source object around it.
+---
---@class love.SoundData: love.Data, love.Object
local SoundData = {}