Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Remembers a recent pair of capture timestamp and rtp ts. More...
#include <timestamp_extractor.h>
Public Member Functions | |
TimestampExtractor (packet::IWriter &writer, const audio::SampleSpec &sample_spec) | |
Initialize. More... | |
virtual | ~TimestampExtractor () |
Destroy. More... | |
virtual ROC_ATTR_NODISCARD status::StatusCode | write (const packet::PacketPtr &pkt) |
Passes pkt downstream and remembers its capture and rtp timestamps. More... | |
bool | has_mapping () |
Check if mapping already available. More... | |
packet::stream_timestamp_t | get_mapping (core::nanoseconds_t capture_ts) |
Get rtp timestamp mapped to given capture timestamp. More... | |
Remembers a recent pair of capture timestamp and rtp ts.
Definition at line 27 of file timestamp_extractor.h.
roc::rtp::TimestampExtractor::TimestampExtractor | ( | packet::IWriter & | writer, |
const audio::SampleSpec & | sample_spec | ||
) |
Initialize.
|
virtual |
Destroy.
packet::stream_timestamp_t roc::rtp::TimestampExtractor::get_mapping | ( | core::nanoseconds_t | capture_ts | ) |
Get rtp timestamp mapped to given capture timestamp.
bool roc::rtp::TimestampExtractor::has_mapping | ( | ) |
Check if mapping already available.
|
virtual |
Passes pkt downstream and remembers its capture and rtp timestamps.
Implements roc::packet::IWriter.