Converts frames frames of interleaved input and writes the result to output, which holds at least outputCapacity(frames) frames. The engine never keeps input after the call returns.
Return
the frames written to output. Zero is a valid answer while the filter fills.