Don't bother decoding video frames when we're seeking around trying to find subtitles.
[dcpomatic.git] / src / lib / sndfile_decoder.h
index 41d5faf082ec29c75b2c2e1059f528c59a26e0ff..68c8633a0d604df5e7e6aa3f19dfc07993422d2e 100644 (file)
 
 */
 
-#include <sndfile.h>
 #include "decoder.h"
 #include "audio_decoder.h"
 #include "audio_examiner.h"
+#include <sndfile.h>
 
 class SndfileContent;
 
@@ -30,14 +30,13 @@ public:
        SndfileDecoder (boost::shared_ptr<const SndfileContent> c);
        ~SndfileDecoder ();
 
-       void seek (ContentTime, bool);
-
        int audio_channels () const;
        ContentTime audio_length () const;
        int audio_frame_rate () const;
 
 private:
-       bool pass ();
+       bool pass (PassReason);
+       void seek (ContentTime, bool);
        
        boost::shared_ptr<const SndfileContent> _sndfile_content;
        SNDFILE* _sndfile;