Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Interleaves packets to transmit them in pseudo random order. More...
#include <interleaver.h>
Public Member Functions | |
Interleaver (IWriter &writer, core::IArena &arena, size_t block_size) | |
Initialize. More... | |
bool | is_valid () const |
Check if object is successfully constructed. More... | |
virtual ROC_ATTR_NODISCARD status::StatusCode | write (const PacketPtr &packet) |
Write next packet. More... | |
ROC_ATTR_NODISCARD status::StatusCode | flush () |
Send all buffered packets to output writer. More... | |
size_t | block_size () const |
Maximum delay between writing packet and moment we get it in output in terms of packets number. More... | |
Interleaves packets to transmit them in pseudo random order.
Definition at line 25 of file interleaver.h.
roc::packet::Interleaver::Interleaver | ( | IWriter & | writer, |
core::IArena & | arena, | ||
size_t | block_size | ||
) |
Initialize.
output
. size_t roc::packet::Interleaver::block_size | ( | ) | const |
Maximum delay between writing packet and moment we get it in output in terms of packets number.
ROC_ATTR_NODISCARD status::StatusCode roc::packet::Interleaver::flush | ( | ) |
Send all buffered packets to output writer.
bool roc::packet::Interleaver::is_valid | ( | ) | const |
Check if object is successfully constructed.
|
virtual |
Write next packet.
Implements roc::packet::IWriter.