Encode a sample block into the buffer specified.
The samples have been read and are waiting in the readBuffer member
variable. it is expected this function will encode exactly
encodedBlockSize bytes.
Parameters:
buffer - Buffer into which encoded bytes are placed
length - Actual length of encoded data buffer
Decode a sample block from the buffer specified.
The samples must be placed into the writeBuffer member variable. It is
expected that no more than frameSamples is decoded. The return value
is the number of samples decoded. Zero indicates an error.
Parameters:
buffer - Buffer from which encoded data is found
length - Length of encoded data buffer
written - Number of bytes used from data buffer