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