Skip to content

Commit 552dfda

Browse files
committed
Merge branch 'audio-rework' into cne-dev
# Conflicts: # flixel/sound/FlxSound.hx # flixel/sound/FlxSoundGroup.hx # flixel/system/frontEnds/SoundFrontEnd.hx # flixel/system/macros/FlxDefines.hx
2 parents 216adb1 + e5f7acd commit 552dfda

8 files changed

Lines changed: 2323 additions & 661 deletions

File tree

flixel/FlxGame.hx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,11 @@ class FlxGame extends Sprite
593593
_state.destroy();
594594

595595

596+
// sound datas too.
597+
#if FLX_SOUND_SYSTEM
598+
FlxG.sound.clearCache();
599+
#end
600+
596601
// Finally assign and create the new state
597602
_state = _nextState.createInstance();
598603
_state._constructor = _nextState.getConstructor();

0 commit comments

Comments
 (0)