mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -05:00
Fix music updating issue.
This commit is contained in:
parent
e84fdf9fac
commit
9ebb253b53
1 changed files with 5 additions and 2 deletions
|
@ -50,6 +50,11 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
|
||||||
*/
|
*/
|
||||||
static var pool(default, null):FlxTypedGroup<FunkinSound> = new FlxTypedGroup<FunkinSound>();
|
static var pool(default, null):FlxTypedGroup<FunkinSound> = new FlxTypedGroup<FunkinSound>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calculate the current time of the sound.
|
||||||
|
* NOTE: You need to `add()` the sound to the scene for `update()` to increment the time.
|
||||||
|
*/
|
||||||
|
//
|
||||||
public var muted(default, set):Bool = false;
|
public var muted(default, set):Bool = false;
|
||||||
|
|
||||||
function set_muted(value:Bool):Bool
|
function set_muted(value:Bool):Bool
|
||||||
|
@ -392,8 +397,6 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
|
||||||
// Call onLoad() because the sound already loaded
|
// Call onLoad() because the sound already loaded
|
||||||
if (onLoad != null && sound._sound != null) onLoad();
|
if (onLoad != null && sound._sound != null) onLoad();
|
||||||
|
|
||||||
FlxG.sound.list.remove(FlxG.sound.music);
|
|
||||||
|
|
||||||
return sound;
|
return sound;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue