Skip to content

Commit a8fce10

Browse files
committed
Rework Audio, FlxSound Stuffs
Look at below for more information about this commit - #11
1 parent 075a8ac commit a8fce10

10 files changed

Lines changed: 2273 additions & 653 deletions

File tree

flixel/FlxGame.hx

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

551+
// sound datas too.
552+
#if FLX_SOUND_SYSTEM
553+
FlxG.sound.clearCache();
554+
#end
555+
551556
// Finally assign and create the new state
552557
_state = _nextState.createInstance();
553558
_state._constructor = _nextState.getConstructor();

0 commit comments

Comments
 (0)