Helper function that allocates a buffer to hold an encoded audio frame for this's current output format.
a Encoder
size of the buffer
allocated buffer