From 4172c6af3d7f5c8f96cd549af021a9d50be6aaf8 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Thu, 30 Oct 2025 12:35:13 +0100 Subject: [PATCH] =?UTF-8?q?-=20Ajustat=20el=20nombre=20de=20versi=C3=B3=20?= =?UTF-8?q?-=20Retocades=20dos=20funcions=20de=20la=20llibreria=20de=20vsc?= =?UTF-8?q?ode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- version.h | 2 +- vscode/library.lua | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/version.h b/version.h index 3375224..24fb37a 100644 --- a/version.h +++ b/version.h @@ -1,3 +1,3 @@ #pragma once -#define MINI_VERSION "1.2" +#define MINI_VERSION "1.3.6" diff --git a/vscode/library.lua b/vscode/library.lua index d16536b..ddddd43 100644 --- a/vscode/library.lua +++ b/vscode/library.lua @@ -303,6 +303,11 @@ music = {} ---Load and play the song in the specified OGG file function music.play(filename) end +---@param filename string +---@param loop integer +---Load and play the song in the specified OGG file, loop number of times +function music.play(filename, loop) end + ---Pause the currently playing song function music.pause() end @@ -337,6 +342,12 @@ function sound.free(snd) end ---Play the sound specified, returns the channel in which it's playing function sound.play(snd) end +---@param snd number +---@param loop integer +---@return number chl +---Play the sound specified loop number of times, returns the channel in which it's playing +function sound.play(snd, loop) end + ---@param chl number ---Stop the channel specified function sound.stop(chl) end