Create a new encoder.
encode_buffer enc buffer encodes S16LE data from the string buffer buffer and drops consumed data from buffer.
encode_buffer enc buffer
buffer
encode_string enc data encodes the given S16LE pcm buffer and returns AAC data and the number of input bytes consumed by the decoder.
encode_string enc data
encode_substring enc data offset len encodes the sub-string of data starting at position offset and of length len.
encode_substring enc data offset len
data
offset
len
Recommended minimun input to feed to the decoder.