Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Delayed reader. More...
#include <delayed_reader.h>
Public Member Functions | |
DelayedReader (IReader &reader, core::nanoseconds_t target_delay, const audio::SampleSpec &sample_spec) | |
Initialize. More... | |
bool | is_valid () const |
Check if object was constructed successfully. More... | |
virtual ROC_ATTR_NODISCARD status::StatusCode | read (PacketPtr &) |
Read packet. More... | |
Delayed reader.
Definition at line 28 of file delayed_reader.h.
roc::packet::DelayedReader::DelayedReader | ( | IReader & | reader, |
core::nanoseconds_t | target_delay, | ||
const audio::SampleSpec & | sample_spec | ||
) |
Initialize.
Parameters
reader
is used to read packetstarget_delay
is the delay to insert before first packetsample_spec
is the specifications of incoming packets bool roc::packet::DelayedReader::is_valid | ( | ) | const |
Check if object was constructed successfully.
|
virtual |
Read packet.
Implements roc::packet::IReader.