1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-08-30 18:34:51 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
ACrazyTown 1967348281
Merge c99fd24efa into 3a41b696d3 2025-08-27 20:57:31 +02:00
unknown c99fd24efa Fixes for https://github.com/FunkinCrew/funkVis/pull/12 2025-08-15 18:51:09 +08:00
2 changed files with 26 additions and 1 deletions

View file

@ -59,6 +59,16 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
}
}
override public function destroy():Void
{
if (analyzer != null)
{
analyzer.cleanup();
}
super.destroy();
}
public function initAnalyzer():Void
{
if (snd == null) return;
@ -85,7 +95,12 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
public function dumpSound():Void
{
snd = null;
analyzer = null;
if (analyzer != null)
{
analyzer.cleanup();
analyzer = null;
}
}
var visTimer:Float = -1;

View file

@ -37,6 +37,16 @@ class CharSelectGF extends FlxAtlasSprite implements IBPMSyncedScriptedClass
switchGF("bf");
}
override public function destroy():Void
{
if (analyzer != null)
{
analyzer.cleanup();
}
super.destroy();
}
override public function update(elapsed:Float):Void
{
super.update(elapsed);