12 #ifndef ROC_RTP_TIMESTAMP_INJECTOR_H_
13 #define ROC_RTP_TIMESTAMP_INJECTOR_H_
#define ROC_ATTR_NODISCARD
Emit warning if function result is not checked.
Sample specification. Describes sample rate and channels.
Base class for non-copyable objects.
Fills capture timestamps in rtp packets.
virtual ~TimestampInjector()
Virtual destructor.
TimestampInjector(packet::IReader &reader, const audio::SampleSpec &sample_spec)
Initialize.
void update_mapping(core::nanoseconds_t capture_ts, packet::stream_timestamp_t rtp_ts)
Get a pair of a reference timestamps.
virtual ROC_ATTR_NODISCARD status::StatusCode read(packet::PacketPtr &)
Get packet with filled capture ts field.
int64_t nanoseconds_t
Nanoseconds.
uint32_t stream_timestamp_t
Packet stream timestamp.
Commonly used types and functions.