1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-02-10 21:43:06 +00:00

logarithmic volume control

This commit is contained in:
Cameron Taylor 2024-09-09 13:01:19 -04:00
parent 591d4a29f4
commit e2c287e112
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@
"name": "flixel",
"type": "git",
"dir": null,
"ref": "599f38eeb502a8ba6439784036c2cfdc7b485260",
"ref": "f2b090d6c608471e730b051c8ee22b8b378964b1",
"url": "https://github.com/FunkinCrew/flixel"
},
{

View file

@ -120,7 +120,7 @@ class FunkinSoundTray extends FlxSoundTray
lerpYPos = 10;
visible = true;
active = true;
var globalVolume:Int = Math.round(FlxG.sound.volume * 10);
var globalVolume:Int = Math.round(FlxG.sound.logToLinear(FlxG.sound.volume) * 10);
if (FlxG.sound.muted)
{