![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Latency monitor. More...
#include <roc_audio/latency_monitor.h>

Public Member Functions | |
| LatencyMonitor (IFrameReader &frame_reader, const packet::SortedQueue &incoming_queue, const Depacketizer &depacketizer, const packet::ILinkMeter &link_meter, ResamplerReader *resampler, const LatencyConfig &config, const SampleSpec &packet_sample_spec, const SampleSpec &frame_sample_spec) | |
| Constructor. | |
| bool | is_valid () const |
| Check if the object was initialized successfully. | |
| bool | is_alive () const |
| Check if the stream is still alive. | |
| const LatencyMetrics & | metrics () const |
| Get metrics. | |
| virtual bool | read (Frame &frame) |
| Read audio frame from a pipeline. | |
| bool | reclock (core::nanoseconds_t playback_timestamp) |
| Report playback timestamp of last frame returned by read. | |
Public Member Functions inherited from roc::core::ListNode< Tag > | |
| ListData * | list_data () const |
| Get pointer to internal data. | |
Additional Inherited Members | |
Static Public Member Functions inherited from roc::core::ListNode< Tag > | |
| static ListNode * | list_node (ListData *data) |
| Get pointer to parent node from pointer to internal data. | |
Latency monitor.
Features
Flow
Definition at line 60 of file latency_monitor.h.
| roc::audio::LatencyMonitor::LatencyMonitor | ( | IFrameReader & | frame_reader, |
| const packet::SortedQueue & | incoming_queue, | ||
| const Depacketizer & | depacketizer, | ||
| const packet::ILinkMeter & | link_meter, | ||
| ResamplerReader * | resampler, | ||
| const LatencyConfig & | config, | ||
| const SampleSpec & | packet_sample_spec, | ||
| const SampleSpec & | frame_sample_spec | ||
| ) |
Constructor.
| bool roc::audio::LatencyMonitor::is_alive | ( | ) | const |
Check if the stream is still alive.
| bool roc::audio::LatencyMonitor::is_valid | ( | ) | const |
Check if the object was initialized successfully.
| const LatencyMetrics & roc::audio::LatencyMonitor::metrics | ( | ) | const |
Get metrics.
|
virtual |
Read audio frame from a pipeline.
Implements roc::audio::IFrameReader.
| bool roc::audio::LatencyMonitor::reclock | ( | core::nanoseconds_t | playback_timestamp | ) |
Report playback timestamp of last frame returned by read.