actors with chunk anchoring wip

This commit is contained in:
minjaesong
2024-09-07 16:06:15 +09:00
parent 68854d3573
commit e3b663b4aa
7 changed files with 26 additions and 1 deletions

View File

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