GNU Radio 3.6.5 C++ API
|
Stream muxing block to multiplex many streams into one with a specified format. More...
#include <stream_mux.h>
Public Types | |
typedef boost::shared_ptr < stream_mux > | sptr |
Static Public Member Functions | |
static sptr | make (size_t itemsize, const std::vector< int > &lengths) |
Creates a stream muxing block to multiplex many streams into one with a specified format. |
Stream muxing block to multiplex many streams into one with a specified format.
Muxes N streams together producing an output stream that contains N0 items from the first stream, N1 items from the second, etc. and repeats:
[N0, N1, N2, ..., Nm, N0, N1, ...]
static sptr gr::blocks::stream_mux::make | ( | size_t | itemsize, |
const std::vector< int > & | lengths | ||
) | [static] |
Creates a stream muxing block to multiplex many streams into one with a specified format.
itemsize | the item size of the stream |
lengths | a vector (list/tuple) specifying the number of items from each stream the mux together. Warning: this requires that at least as many items per stream are available or the system will wait indefinitely for the items. |