- [NEW] music.duration()

- [NEW] music.state()
- [NEW] contsants music.INVALID, music.PLAYING, music.PAUSED, music.STOPPED i music.DISABLED
- [NEW] El exemple en lua inclos te una secció per a mostrar les funcionalitats de la música
This commit is contained in:
2026-05-29 20:01:26 +02:00
parent eea4a67542
commit a45cb95030
9 changed files with 99 additions and 4 deletions
+14
View File
@@ -399,6 +399,14 @@ function music.pos() end
---Set the playing position of the currently loaded song
function music.pos(pos) end
---@return number time
---Get the duration of the currently loaded song
function music.duration() end
---@return integer value
---Get the state of the music
function music.state() end
---@return boolean value
---Get if music is enabled
function music.enabled() end
@@ -407,6 +415,12 @@ function music.enabled() end
---Set if music is enabled or not
function music.enabled(value) end
music.INVALID = 0
music.PLAYING = 1
music.PAUSED = 2
music.STOPPED = 3
music.DISABLED = 4
---@class sound
sound = {}