ChangeLog.
[dcpomatic.git] / src / lib / audio_decoder.h
index 168348c2e3fdf52e0bb7c5a617dbd07718ce5e71..ab6c4b8a931e12cfe892c8cb74d86ae7162d1a10 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "decoder.h"
 #include "content.h"
+#include "audio_content.h"
 
 class AudioBuffers;
 
@@ -35,7 +36,9 @@ class AudioBuffers;
 class AudioDecoder : public virtual Decoder
 {
 public:
-       AudioDecoder (boost::shared_ptr<const Film>);
+       AudioDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const AudioContent>);
+
+       bool has_audio () const;
 
        /** Emitted when some audio data is ready */
        boost::signals2::signal<void (boost::shared_ptr<const AudioBuffers>, AudioContent::Frame)> Audio;
@@ -43,7 +46,8 @@ public:
 protected:
 
        void audio (boost::shared_ptr<const AudioBuffers>, AudioContent::Frame);
-       AudioContent::Frame _next_audio_frame;
+       boost::shared_ptr<const AudioContent> _audio_content;
+       AudioContent::Frame _audio_position;
 };
 
 #endif