encode

abstract fun encode(    input: ByteArray,     offset: Int,     size: Int): ByteArray?

Encode an input

Return

encoded data

Parameters

input

the data to encoding. also must be follow the audioFormat provided at startEncoding

offset

the start offset in input

size

the number of bytes to encode