From d3350e3938fc1d956c10b285dc6126736927f92f Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 24 Jan 2021 15:43:46 +0100 Subject: [PATCH] feat: add a way to apply volume --- birb/core/music.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/birb/core/music.lua b/birb/core/music.lua index 9556677..64928a4 100644 --- a/birb/core/music.lua +++ b/birb/core/music.lua @@ -54,6 +54,10 @@ function MusicManager:haveMusic() return (self.musics[1] ~= nil) end +function MusicManager:applyVolume() + self.musics[1]:setVolume(self.core.options.data.audio.music / 100) +end + function MusicManager:playMusic() if (self:haveMusic()) then self.musics[1]:setVolume(self.core.options.data.audio.music / 100)