mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 13:34:06 +09:00
fix: bad cacheing behaviour
This commit is contained in:
@@ -210,7 +210,9 @@ class MixerTrackProcessor(bufferSize: Int, val rate: Int, val track: TerrarumAud
|
||||
allocateStreamBuf(track)
|
||||
}
|
||||
|
||||
streamBuf!!.fetchBytes()
|
||||
if (track.currentTrack == null) throw IllegalStateException("Track ${track.name} is playing but also has null music track")
|
||||
|
||||
streamBuf?.fetchBytes() ?: throw NullPointerException("Null StreamBuf for ${track.name}")
|
||||
}
|
||||
|
||||
var samplesL1: FloatArray
|
||||
|
||||
Reference in New Issue
Block a user