mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-26 06:09:02 +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",
|
"name": "flixel",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"dir": null,
|
"dir": null,
|
||||||
"ref": "599f38eeb502a8ba6439784036c2cfdc7b485260",
|
"ref": "f2b090d6c608471e730b051c8ee22b8b378964b1",
|
||||||
"url": "https://github.com/FunkinCrew/flixel"
|
"url": "https://github.com/FunkinCrew/flixel"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ class FunkinSoundTray extends FlxSoundTray
|
||||||
lerpYPos = 10;
|
lerpYPos = 10;
|
||||||
visible = true;
|
visible = true;
|
||||||
active = 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)
|
if (FlxG.sound.muted)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue