reloading the engine will copy track states from the old instance, obsoleting audioMixerRenewHooks

This commit is contained in:
minjaesong
2024-01-16 14:00:58 +09:00
parent f05cfe3cbb
commit 07c70a42f3
17 changed files with 106 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ class FixtureJukebox : Electric {
}
App.audioMixerRenewHooks[this] = { stopGracefully() }
// App.audioMixerRenewHooks[this] = { stopGracefully() }
}
override val canBeDespawned: Boolean
@@ -177,7 +177,7 @@ class FixtureJukebox : Electric {
}
override fun dispose() {
App.audioMixerRenewHooks.remove(this)
// App.audioMixerRenewHooks.remove(this)
super.dispose()
// testMusic.gdxMusic.dispose()
}