Extract common code out into kdm_for_screen()
[dcpomatic.git] / src / lib / resampler.h
index 9e9304fb421c7d46ca529702c635a09c67133ed1..4b19dc511b891e988c33b4a89b22af8c78da4eb9 100644 (file)
@@ -31,8 +31,8 @@ public:
        Resampler (int, int, int);
        ~Resampler ();
 
-       std::pair<boost::shared_ptr<const AudioBuffers>, Frame> run (boost::shared_ptr<const AudioBuffers>, Frame);
-       std::pair<boost::shared_ptr<const AudioBuffers>, Frame> flush ();
+       boost::shared_ptr<const AudioBuffers> run (boost::shared_ptr<const AudioBuffers>);
+       boost::shared_ptr<const AudioBuffers> flush ();
        void reset ();
        void set_fast ();
 
@@ -41,6 +41,4 @@ private:
        int _in_rate;
        int _out_rate;
        int _channels;
-       boost::optional<Frame> _next_in;
-       boost::optional<Frame> _next_out;
 };