Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::packet::DelayedReader Class Reference

Delayed reader. More...

#include <delayed_reader.h>

Inheritance diagram for roc::packet::DelayedReader:
Collaboration diagram for roc::packet::DelayedReader:

Public Member Functions

 DelayedReader (IReader &reader, core::nanoseconds_t delay, size_t sample_rate)
 Initialize. More...
virtual PacketPtr read ()
 Read packet. More...

Detailed Description

Delayed reader.

Delays audio packet reader for given amount of samples.

Definition at line 27 of file delayed_reader.h.

Constructor & Destructor Documentation

roc::packet::DelayedReader::DelayedReader ( IReader reader,
core::nanoseconds_t  delay,
size_t  sample_rate 



  • reader is used to read packets
  • delay is the delay to insert before first packet
  • sample_rate is the number of samples per second in incoming packets

Member Function Documentation

virtual PacketPtr roc::packet::DelayedReader::read ( )

Read packet.

Implements roc::packet::IReader.

The documentation for this class was generated from the following file: