recover part of loopSound fix from stash

This commit is contained in:
2023-09-15 18:14:46 -06:00
parent bb83df795e
commit 98b648c766

View File

@@ -691,8 +691,10 @@
(prop :Map<FlxSound,Array<Float>> currentSoundVolumes (new Map))
(method loadSound [path]
(let [s (FlxG.sound.load path)]
(let [s (new HFlxSound)]
(s.loadEmbedded path)
(set s.persist true)
(set s.autoDestroy false)
s))
(method :Void playSound [:FlxSound sound :Float volumeMod &opt :Continuation cc]