Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::audio::FreqEstimator Class Reference

Evaluates sender's frequency to receivers's frequency ratio. More...

#include <freq_estimator.h>

Inheritance diagram for roc::audio::FreqEstimator:
Collaboration diagram for roc::audio::FreqEstimator:

Public Member Functions

 FreqEstimator (packet::timestamp_t target_latency)
 Initialize. More...
 
float freq_coeff () const
 Get current frequecy coefficient. More...
 
void update (packet::timestamp_t current_latency)
 Compute new value of frequency coefficient. More...
 

Detailed Description

Evaluates sender's frequency to receivers's frequency ratio.

Definition at line 24 of file freq_estimator.h.

Constructor & Destructor Documentation

roc::audio::FreqEstimator::FreqEstimator ( packet::timestamp_t  target_latency)
explicit

Initialize.

Parameters

  • target_latency defines latency we want to archive.

Member Function Documentation

float roc::audio::FreqEstimator::freq_coeff ( ) const

Get current frequecy coefficient.

void roc::audio::FreqEstimator::update ( packet::timestamp_t  current_latency)

Compute new value of frequency coefficient.


The documentation for this class was generated from the following file: