buffer_new
From an input data stream, formatted in arbitrary packet sizes, produce a data stream with a fixed packet length.
Namespace: dsp
Prototype
sptr<Sink<T, int>> buffer_new(int N, fonction<void(const Vector<T> &)> callback)
Parameters
N | Output packets length |
callback | User function which will be called for each output packet of size \(N\) |
Returns
A data sink accepting vectors of type T
and of arbitrary length.
Description
From an input data stream, formatted in arbitrary packet sizes, produce a data stream with a fixed packet length.