mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 14:34:04 +09:00
audio engine: resize buffer without restarting the game
This commit is contained in:
@@ -67,6 +67,9 @@ class FixtureJukebox : Electric {
|
||||
it.setSpriteImage(TextureRegionPack(backLampTex, TILE_SIZE * 2, TILE_SIZE * 3))
|
||||
it.setRowsAndFrames(1, 1)
|
||||
}
|
||||
|
||||
|
||||
App.audioMixerRenewHooks[this] = { stopGracefully() }
|
||||
}
|
||||
|
||||
override val canBeDespawned: Boolean
|
||||
@@ -174,6 +177,7 @@ class FixtureJukebox : Electric {
|
||||
}
|
||||
|
||||
override fun dispose() {
|
||||
App.audioMixerRenewHooks.remove(this)
|
||||
super.dispose()
|
||||
// testMusic.gdxMusic.dispose()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user