trying to fix glitchy audio after load

This commit is contained in:
minjaesong
2024-02-21 14:06:49 +09:00
parent 063483cfda
commit 91c5105a12
6 changed files with 45 additions and 18 deletions

View File

@@ -161,6 +161,9 @@ abstract class Actor : Comparable<Actor>, Runnable {
musicTracks1.add(track.name)
track.stop()
}
else {
// printdbg(this, "Could not get a free track")
}
}
// printdbg(this, "Dynamic Source ${track?.name}")
@@ -182,9 +185,9 @@ abstract class Actor : Comparable<Actor>, Runnable {
it.currentTrack = music
it.maxVolumeFun = { volume }
it.volume = volume
doSomethingWithTrack(it)
// it.play()
it.playRequested.set(true)
doSomethingWithTrack(it)
}
}
}