![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Fills capture timestamps in rtp packets. More...
#include <roc_rtp/timestamp_injector.h>

Public Member Functions | |
| TimestampInjector (packet::IReader &reader, const audio::SampleSpec &sample_spec) | |
| Initialize. | |
| virtual | ~TimestampInjector () |
| Virtual destructor. | |
| virtual status::StatusCode | read (packet::PacketPtr &) |
| Get packet with filled capture ts field. | |
| void | update_mapping (core::nanoseconds_t capture_ts, packet::stream_timestamp_t rtp_ts) |
| Get a pair of a reference timestamps. | |
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.