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:
parent
591d4a29f4
commit
e2c287e112
2
hmm.json
2
hmm.json
|
@ -18,7 +18,7 @@
|
|||
"name": "flixel",
|
||||
"type": "git",
|
||||
"dir": null,
|
||||
"ref": "599f38eeb502a8ba6439784036c2cfdc7b485260",
|
||||
"ref": "f2b090d6c608471e730b051c8ee22b8b378964b1",
|
||||
"url": "https://github.com/FunkinCrew/flixel"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue