- AudioDecoder (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);
- void flush ();
-
- boost::shared_ptr<const AudioContent> _audio_content;
- boost::shared_ptr<Resampler> _resampler;
- boost::optional<ContentTime> _audio_position;
+ 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:
+ std::map<AudioStreamPtr, Frame> _positions;