12 #ifndef ROC_AUDIO_FREQ_ESTIMATOR_H_
13 #define ROC_AUDIO_FREQ_ESTIMATOR_H_
80 double run_controller_(
double current);
85 double dec1_casc_buff_[fe_decim_len];
88 double dec2_casc_buff_[fe_decim_len];
91 size_t samples_counter_;
Evaluates sender's frequency to receivers's frequency ratio.
void update(packet::stream_timestamp_t current_latency)
Compute new value of frequency coefficient.
FreqEstimator(FreqEstimatorProfile profile, packet::stream_timestamp_t target_latency)
Initialize.
float freq_coeff() const
Get current frequecy coefficient.
Base class for non-copyable objects.
Frequency estimator config.
FreqEstimatorProfile
FreqEstimator paremeter preset.
@ FreqEstimatorProfile_Gradual
Slow and smooth tuning. Good for higher network latency and jitter.
@ FreqEstimatorProfile_Responsive
Fast and responsive tuning. Good for lower network latency and jitter.
uint32_t stream_timestamp_t
Packet stream timestamp.
FreqEstimator tunable parameters.
double I
Integral gain of PI-controller.
size_t decimation_factor1
How much downsample input value (latency buffer size) on the first stage. Must be less or equal to fe...
size_t decimation_factor2
How much downsample input value on the second stage. Must be less or equal to fe_decim_factor_max....
double P
Proportional gain of PI-controller.
Various units used in packets.