Various fixes to push audio vaguely in the right direction.
[dcpomatic.git] / src / lib / audio_decoder.h
index 10d88d1ec5f7f76c516881d93394b6659a9666c0..a4b74e2eae011cec3379e4520137504f381fdb6d 100644 (file)
@@ -43,22 +43,16 @@ class Log;
 class AudioDecoder : public boost::enable_shared_from_this<AudioDecoder>, public DecoderPart
 {
 public:
-       AudioDecoder (Decoder* parent, boost::shared_ptr<const AudioContent>, boost::shared_ptr<Log> log);
-
-       boost::optional<ContentTime> position () const;
-
-       void set_fast ();
-       void flush ();
+       AudioDecoder (Decoder* parent, boost::shared_ptr<AudioContent> content, boost::shared_ptr<Log> log);
 
+       ContentTime position () const;
        void emit (AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, ContentTime);
+       void seek ();
 
        boost::signals2::signal<void (AudioStreamPtr, ContentAudio)> Data;
 
 private:
-       /** An AudioDecoderStream object to manage each stream in _audio_content */
-       typedef std::map<AudioStreamPtr, boost::shared_ptr<AudioDecoderStream> > StreamMap;
-       StreamMap _streams;
-       std::map<AudioStreamPtr, ContentTime> _positions;
+       std::map<AudioStreamPtr, Frame> _positions;
 };
 
 #endif