|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Session latency monitor. More...
#include <latency_monitor.h>
Public Member Functions | |
| LatencyMonitor (const packet::SortedQueue &queue, const Depacketizer &depacketizer, ResamplerReader *resampler, const LatencyMonitorConfig &config, core::nanoseconds_t target_latency, const audio::SampleSpec &input_sample_spec, const audio::SampleSpec &output_sample_spec, const FreqEstimatorConfig &fe_config) | |
| Constructor. | |
| bool | valid () const |
| Check if the object was initialized successfully. | |
| bool | update (packet::timestamp_t time) |
| Update latency. | |
Session latency monitor.
Definition at line 61 of file latency_monitor.h.
| roc::audio::LatencyMonitor::LatencyMonitor | ( | const packet::SortedQueue & | queue, |
| const Depacketizer & | depacketizer, | ||
| ResamplerReader * | resampler, | ||
| const LatencyMonitorConfig & | config, | ||
| core::nanoseconds_t | target_latency, | ||
| const audio::SampleSpec & | input_sample_spec, | ||
| const audio::SampleSpec & | output_sample_spec, | ||
| const FreqEstimatorConfig & | fe_config | ||
| ) |
Constructor.
Parameters
queue and depacketizer are used to calculate the latencyresampler is used to set the scaling factor, may be nullconfig defines various miscellaneous parameterstarget_latency defines FreqEstimator target latency, in samplesinput_sample_spec is the sample spec of the input packetsoutput_sample_spec is the sample spec of the output frames | bool roc::audio::LatencyMonitor::update | ( | packet::timestamp_t | time | ) |
Update latency.
| bool roc::audio::LatencyMonitor::valid | ( | ) | const |
Check if the object was initialized successfully.