Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Evaluates sender's frequency to receivers's frequency ratio. More...
#include <freq_estimator.h>
Public Member Functions | |
FreqEstimator (FreqEstimatorProfile profile, packet::stream_timestamp_t target_latency) | |
Initialize. More... | |
float | freq_coeff () const |
Get current frequecy coefficient. More... | |
void | update (packet::stream_timestamp_t current_latency) |
Compute new value of frequency coefficient. More... | |
Evaluates sender's frequency to receivers's frequency ratio.
Definition at line 62 of file freq_estimator.h.
roc::audio::FreqEstimator::FreqEstimator | ( | FreqEstimatorProfile | profile, |
packet::stream_timestamp_t | target_latency | ||
) |
Initialize.
Parameters
profile
defines configuration preset.target_latency
defines latency we want to archive. float roc::audio::FreqEstimator::freq_coeff | ( | ) | const |
Get current frequecy coefficient.
void roc::audio::FreqEstimator::update | ( | packet::stream_timestamp_t | current_latency | ) |
Compute new value of frequency coefficient.