X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=resampling_queue.h;fp=resampler.h;h=c085eceb6755838ea12001cf6aa6d39a6f21e1d5;hb=e2d886719370306464e2c67574bb6eef62a0a64e;hp=7d3b6025eb7b490655bcf2327e6c3db280195888;hpb=5cd362cd4dcf0a1fac3b90ce59b58e913ee369a4;p=nageru diff --git a/resampler.h b/resampling_queue.h similarity index 94% rename from resampler.h rename to resampling_queue.h index 7d3b602..c085ece 100644 --- a/resampler.h +++ b/resampling_queue.h @@ -1,5 +1,5 @@ -#ifndef _RESAMPLER_H -#define _RESAMPLER_H 1 +#ifndef _RESAMPLING_QUEUE_H +#define _RESAMPLING_QUEUE_H 1 // Takes in samples from an input source, possibly with jitter, and outputs a fixed number // of samples every iteration. Used to a) change sample rates if needed, and b) deal with @@ -45,9 +45,9 @@ #include #include -class Resampler { +class ResamplingQueue { public: - Resampler(unsigned freq_in, unsigned freq_out, unsigned num_channels = 2); + ResamplingQueue(unsigned freq_in, unsigned freq_out, unsigned num_channels = 2); // Note: pts is always in seconds. void add_input_samples(double pts, const float *samples, ssize_t num_samples); @@ -88,4 +88,4 @@ private: std::deque buffer; }; -#endif // !defined(_RESAMPLER_H) +#endif // !defined(_RESAMPLING_QUEUE_H)