Various fixes to push audio vaguely in the right direction.
[dcpomatic.git] / src / lib / audio_decoder.h
index 68e99608fb2b42c2631d718018a59ebd8af685f5..a4b74e2eae011cec3379e4520137504f381fdb6d 100644 (file)
@@ -43,24 +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_position (AudioStreamPtr stream, ContentTime position);
-
-       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;
 
-       boost::optional<ContentTime> position () const;
-
 private:
-       /** An AudioDecoderStream object to manage each stream in _audio_content */
-       std::map<AudioStreamPtr, boost::shared_ptr<AudioDecoderStream> > _streams;
-       std::map<AudioStreamPtr, ContentTime> _positions;
+       std::map<AudioStreamPtr, Frame> _positions;
 };
 
 #endif