Fix loopSound crash w/ new memory clearing
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#cbff6575ee391c99122075f9d17c347598aa3354" into hollywoo/0.0.0/github/cbff6575ee391c99122075f9d17c347598aa3354
|
# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#e2bb87f3d5bef7e634ccb9bb8807a91627c4a221" into hollywoo/0.0.0/github/e2bb87f3d5bef7e634ccb9bb8807a91627c4a221
|
||||||
# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/cbff6575ee391c99122075f9d17c347598aa3354"
|
# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/e2bb87f3d5bef7e634ccb9bb8807a91627c4a221"
|
||||||
-lib kiss
|
-lib kiss
|
||||||
-lib kiss-tools
|
-lib kiss-tools
|
||||||
-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/cbff6575ee391c99122075f9d17c347598aa3354/src/
|
-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/e2bb87f3d5bef7e634ccb9bb8807a91627c4a221/src/
|
||||||
-D hollywoo=0.0.0
|
-D hollywoo=0.0.0
|
@@ -65,7 +65,7 @@
|
|||||||
(let [oldCC cc]
|
(let [oldCC cc]
|
||||||
(set cc
|
(set cc
|
||||||
(makeCC
|
(makeCC
|
||||||
(stopLoopingSound skipping (makeCC null))
|
(stopSound skipping soundLoop (makeCC null))
|
||||||
(when oldCC
|
(when oldCC
|
||||||
(oldCC)))))
|
(oldCC)))))
|
||||||
(loopSound skipping soundLoop (makeCC null) volumeMod))
|
(loopSound skipping soundLoop (makeCC null) volumeMod))
|
||||||
@@ -516,7 +516,8 @@
|
|||||||
|
|
||||||
(cleanup
|
(cleanup
|
||||||
(set tweens [])
|
(set tweens [])
|
||||||
|
(set flxDirector.nextCC null)
|
||||||
|
(loopingSoundPlays.clear)
|
||||||
(destroyAndClear actors)
|
(destroyAndClear actors)
|
||||||
(destroyAndClear props)
|
(destroyAndClear props)
|
||||||
(destroyAndClear sets)
|
(destroyAndClear sets)
|
||||||
|
Reference in New Issue
Block a user