From 36bb272ab401b83724863c1779780fa44da5e6d2 Mon Sep 17 00:00:00 2001 From: Ne_Eo Date: Fri, 15 Nov 2024 18:52:47 +0100 Subject: [PATCH] Made CoolUtil.playMusic volume into a float --- source/funkin/backend/utils/CoolUtil.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/backend/utils/CoolUtil.hx b/source/funkin/backend/utils/CoolUtil.hx index 3f956e72..a33e11d2 100644 --- a/source/funkin/backend/utils/CoolUtil.hx +++ b/source/funkin/backend/utils/CoolUtil.hx @@ -408,7 +408,7 @@ class CoolUtil * @param Looped Whenever the music loops (true) * @param Group A group that this music belongs to (default) */ - @:noUsing public static function playMusic(path:String, Persist:Bool = false, Volume:Int = 1, Looped:Bool = true, DefaultBPM:Float = 102, ?Group:FlxSoundGroup) { + @:noUsing public static function playMusic(path:String, Persist:Bool = false, Volume:Float = 1, Looped:Bool = true, DefaultBPM:Float = 102, ?Group:FlxSoundGroup) { Conductor.reset(); FlxG.sound.playMusic(path, Volume, Looped, Group); if (FlxG.sound.music != null) {