repack

fun repack(source: ByteBuffer, inputBytes: Int, outputBytes: Int, samples: Int, target: ByteBuffer)

Copies samples samples from source (from its position, which does not move) into target and pads each one to outputBytes bytes with zero low bytes. Widening keeps every sample value.