Merge master; specify libdcp-1.0.
[dcpomatic.git] / src / lib / audio_decoder.h
index 0cd0e9754c6c889fb77210b7109029ff50cfd1a7..bb3aafccd6a8982824f890fa05907ea8def66b96 100644 (file)
@@ -30,6 +30,7 @@
 #include "decoded.h"
 
 class AudioBuffers;
+class Resampler;
 
 /** @class AudioDecoder.
  *  @brief Parent class for audio decoders.
@@ -38,16 +39,21 @@ class AudioDecoder : public virtual Decoder
 {
 public:
        AudioDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const AudioContent>);
-
+       
        boost::shared_ptr<const AudioContent> audio_content () const {
                return _audio_content;
        }
 
+       void seek (ContentTime time, bool accurate);
+       
 protected:
 
        void audio (boost::shared_ptr<const AudioBuffers>, ContentTime);
-       
-       boost::shared_ptr<const AudioContent> _audio_content;   
+       void flush ();
+
+       boost::shared_ptr<const AudioContent> _audio_content;
+       boost::shared_ptr<Resampler> _resampler;
+       boost::optional<AudioFrame> _audio_position;
 };
 
 #endif