Various fixes to push audio vaguely in the right direction.
[dcpomatic.git] / src / lib / resampler.h
index afc28aefd01ce58a7ef2a1a431d29fff02ae4311..359598b122b17b4f1dbe30139eaba8ce91409bbe 100644 (file)
@@ -31,7 +31,7 @@ public:
        Resampler (int, int, int);
        ~Resampler ();
 
-       boost::shared_ptr<const AudioBuffers> run (boost::shared_ptr<const AudioBuffers>);
+       std::pair<boost::shared_ptr<const AudioBuffers>, Frame> run (boost::shared_ptr<const AudioBuffers>, Frame);
        boost::shared_ptr<const AudioBuffers> flush ();
        void set_fast ();
 
@@ -40,4 +40,6 @@ private:
        int _in_rate;
        int _out_rate;
        int _channels;
+       boost::optional<Frame> _next_in;
+       boost::optional<Frame> _next_out;
 };