Obey DCPOMATIC_LINUX_SHARE_PREFIX in non-debug as well as debug mode.
[dcpomatic.git] / src / lib / sndfile_decoder.h
index 1de123917ad53a324dc65643e5a7756e4b77f8c4..68c8633a0d604df5e7e6aa3f19dfc07993422d2e 100644 (file)
 
 */
 
-#include <sndfile.h>
 #include "decoder.h"
 #include "audio_decoder.h"
+#include "audio_examiner.h"
+#include <sndfile.h>
 
 class SndfileContent;
 
-class SndfileDecoder : public AudioDecoder
+class SndfileDecoder : public AudioDecoder, public AudioExaminer
 {
 public:
-       SndfileDecoder (boost::shared_ptr<const SndfileContent>);
+       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;