mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 04:54:05 +09:00
actors with chunk anchoring wip
This commit is contained in:
@@ -140,7 +140,7 @@ class MusicContainer(
|
||||
gdxMusic.forceInvoke<Int>("read", arrayOf(readBuf))!!.toLong() // its return value will be useless for looping=true
|
||||
val read = minOf(readSize.toLong(), (totalSizeInBytes - readCount))
|
||||
|
||||
UnsafeHelper.memcpyRaw(readBuf, UnsafeHelper.getArrayOffset(readBuf), null, soundBuf!!.ptr + readCount, read)
|
||||
UnsafeHelper.memcpyFromArrToPtr(readBuf, 0, soundBuf!!.ptr + readCount, read)
|
||||
|
||||
readCount += read
|
||||
|
||||
|
||||
Reference in New Issue
Block a user