12#ifndef ROC_AUDIO_FREQ_ESTIMATOR_H_
13#define ROC_AUDIO_FREQ_ESTIMATOR_H_
61 float run_controller_(
float current);
66 float dec1_casc_buff_[fe_decim_len];
69 float dec2_casc_buff_[fe_decim_len];
72 size_t samples_counter_;
Evaluates sender's frequency to receivers's frequency ratio.
void update(packet::timestamp_t current_latency)
Compute new value of frequency coefficient.
FreqEstimator(FreqEstimatorConfig config, packet::timestamp_t target_latency)
Initialize.
float freq_coeff() const
Get current frequecy coefficient.
Base class for non-copyable objects.
Frequency estimator config.
uint32_t timestamp_t
Audio packet timestamp.
FreqEstimator tunable parameters.
size_t decimation_factor1
How much downsample input value (latency buffer size) on the first stage. Must be less or equal to fe...
float I
Integral gain of PI-controller.
size_t decimation_factor2
How much downsample input value on the second stage. Must be less or equal to fe_decim_factor_max....
float P
Proportional gain of PI-controller.
Various units used in packets.