Skip to content

Commit afe24fb

Browse files
committed
Rework Audio Related Stuffs
Look at below for more information about this commit - FunkinCrew/Funkin#6899 - FunkinCrew#11
1 parent c8e79d2 commit afe24fb

File tree

11 files changed

+2327
-653
lines changed

11 files changed

+2327
-653
lines changed

flixel/FlxGame.hx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,11 @@ class FlxGame extends Sprite
575575
// we need to clear bitmap cache only after previous state is destroyed, which will reset useCount for FlxGraphic objects
576576
FlxG.bitmap.clearCache();
577577

578+
// sound datas too.
579+
#if FLX_SOUND_SYSTEM
580+
FlxG.sound.clearCache();
581+
#end
582+
578583
// Finally assign and create the new state
579584
_state = _nextState.createInstance();
580585
_state._constructor = _nextState.getConstructor();

0 commit comments

Comments
 (0)