Further fixes and tidying to 'better-seek'.
[dcpomatic.git] / src / lib / audio_decoder.h
index 4b7594f352719a32124684aca0e77b77c7973507..cdb643ceeabef373aa5ada3f705168beed574766 100644 (file)
@@ -58,9 +58,12 @@ public:
        void flush ();
        void seek (ContentTime t, bool accurate);
 
+       boost::optional<ContentTime> position () const;
+
 private:
        /** An AudioDecoderStream object to manage each stream in _audio_content */
-       std::map<AudioStreamPtr, boost::shared_ptr<AudioDecoderStream> > _streams;
+       typedef std::map<AudioStreamPtr, boost::shared_ptr<AudioDecoderStream> > StreamMap;
+       StreamMap _streams;
 };
 
 #endif