Adapter base class
Overview
Use the audioadapter to handle overlap before and after the target data for process, also supports strides.
The method __adapter()
will only be triggered if overlap or stride is not zero.
The aim of this MR is for all the transforms to not need to do any bookkeeping themselves, they only need to implement computational aspects of the transform.
The __adapter()
method will also provide preparedoutoffsets
to infer the offset and noffset of the output buffers for the transform. The transform can directly use these offset information to construct frames, so they don't have do bookkeeping themselves.
Tests done:
- Works for the resampler
- The correlator works, but I haven't sanity checked the output.
Edited by Yun-Jing Huang