btex stuffs

This commit is contained in:
minjaesong
2024-04-24 01:13:46 +09:00
parent e2a87d0e14
commit 76dd9a98e4
18 changed files with 602 additions and 182 deletions

View File

@@ -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)