Merge 1.0-seek and subtitle-content.
[dcpomatic.git] / src / lib / sndfile_decoder.h
index 64bd2f7f53a4de574bafa48911936c3955a4169a..46d9c5e5cf24762b5c2733e4f8c0be6c035a4d97 100644 (file)
@@ -29,17 +29,19 @@ public:
        SndfileDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const SndfileContent>);
        ~SndfileDecoder ();
 
-       bool pass ();
+       void seek (ContentTime, bool);
 
        int audio_channels () const;
-       ContentAudioFrame audio_length () const;
+       AudioFrame audio_length () const;
        int audio_frame_rate () const;
 
 private:
+       bool pass ();
+       
        boost::shared_ptr<const SndfileContent> _sndfile_content;
        SNDFILE* _sndfile;
        SF_INFO _info;
-       ContentAudioFrame _done;
-       ContentAudioFrame _remaining;
+       AudioFrame _done;
+       AudioFrame _remaining;
        float* _deinterleave_buffer;
 };