mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 14:34:04 +09:00
btex stuffs
This commit is contained in:
@@ -76,7 +76,8 @@ class AudioBankMusicBox(override var songFinishedHook: (AudioBank) -> Unit = {})
|
||||
bufferR.fill(0f)
|
||||
|
||||
// only copy over the past and current messages
|
||||
messageQueue.filter { it.tick <= tickCount }.forEach {
|
||||
// use cloned version of queue to prevent concurrent modification exception
|
||||
messageQueue.toMutableList().filter { it.tick <= tickCount }.forEach {
|
||||
// copy over the samples
|
||||
it.notes.forEach { note ->
|
||||
val noteSamples = getSample(note)
|
||||
|
||||
Reference in New Issue
Block a user