X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fresampler.h;h=1f8200c69366fc2c642f08945991245f6e17d0fe;hb=f99a3b6b778428033308db0210fe6466fc40ff16;hp=9d620b96282ecba02139414fa5612a5d070d7d3e;hpb=dc78a40b0c7ce4569874fd1e77a86df907937d50;p=dcpomatic.git diff --git a/src/lib/resampler.h b/src/lib/resampler.h index 9d620b962..1f8200c69 100644 --- a/src/lib/resampler.h +++ b/src/lib/resampler.h @@ -20,7 +20,6 @@ #include "types.h" #include -#include #include class AudioBuffers; @@ -31,8 +30,9 @@ public: Resampler (int, int, int); ~Resampler (); - std::pair, Frame> run (boost::shared_ptr, Frame); - std::pair, Frame> flush (); + std::shared_ptr run (std::shared_ptr); + std::shared_ptr flush (); + void reset (); void set_fast (); private: @@ -40,6 +40,4 @@ private: int _in_rate; int _out_rate; int _channels; - boost::optional _next_in; - boost::optional _next_out; };