Hopefully much cleaner handling of PTS changes under resample.
[dcpomatic.git] / src / lib / resampler.h
index 6e282838a17c5f98e8ae707d0059ab74e1c1bfe4..69ec83ba93047f3493cd23005487b7845580944e 100644 (file)
@@ -22,6 +22,8 @@
 extern "C" {
 #include <libswresample/swresample.h>
 }
+#include "types.h"
+#include "audio_content.h"
 
 class AudioBuffers;
 
@@ -31,7 +33,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>, AudioContent::Frame> run (boost::shared_ptr<const AudioBuffers>, AudioContent::Frame);
        boost::shared_ptr<const AudioBuffers> flush ();
 
 private: