Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Fills capture timestamps in rtp packets. More...
#include <timestamp_injector.h>
Public Member Functions | |
TimestampInjector (packet::IReader &reader, const audio::SampleSpec &sample_spec) | |
Initialize. More... | |
virtual | ~TimestampInjector () |
Virtual destructor. More... | |
virtual ROC_ATTR_NODISCARD status::StatusCode | read (packet::PacketPtr &) |
Get packet with filled capture ts field. More... | |
void | update_mapping (core::nanoseconds_t capture_ts, packet::stream_timestamp_t rtp_ts) |
Get a pair of a reference timestamps. More... | |
Fills capture timestamps in rtp packets.
Definition at line 28 of file timestamp_injector.h.
roc::rtp::TimestampInjector::TimestampInjector | ( | packet::IReader & | reader, |
const audio::SampleSpec & | sample_spec | ||
) |
Initialize.
|
virtual |
Virtual destructor.
|
virtual |
Get packet with filled capture ts field.
Implements roc::packet::IReader.
void roc::rtp::TimestampInjector::update_mapping | ( | core::nanoseconds_t | capture_ts, |
packet::stream_timestamp_t | rtp_ts | ||
) |
Get a pair of a reference timestamps.