1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-08-31 10:56:21 +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 public function initAnalyzer():Void
{ {
if (snd == null) return; if (snd == null) return;
@ -85,8 +95,13 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
public function dumpSound():Void public function dumpSound():Void
{ {
snd = null; snd = null;
if (analyzer != null)
{
analyzer.cleanup();
analyzer = null; analyzer = null;
} }
}
var visTimer:Float = -1; var visTimer:Float = -1;
var visTimeMax:Float = 1 / 30; var visTimeMax:Float = 1 / 30;

View file

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