summaryrefslogtreecommitdiff
path: root/src/lib/audio_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-11-22 14:54:31 +0000
committerCarl Hetherington <cth@carlh.net>2017-04-19 23:04:32 +0100
commite11276a822289d7d7d91a4f431f386ad28ef16dd (patch)
tree83c1162b3beb7f9fa11b24409309747dd9753959 /src/lib/audio_decoder.h
parentc6b0eb4db564abd41aa0685367a8660d7091e8f8 (diff)
Various work on the audio code.
Diffstat (limited to 'src/lib/audio_decoder.h')
-rw-r--r--src/lib/audio_decoder.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h
index a777592c2..68e99608f 100644
--- a/src/lib/audio_decoder.h
+++ b/src/lib/audio_decoder.h
@@ -45,19 +45,22 @@ class AudioDecoder : public boost::enable_shared_from_this<AudioDecoder>, public
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 ();
void emit (AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, ContentTime);
- boost::signals2::signal<void (ContentAudio)> Data;
+ boost::signals2::signal<void (AudioStreamPtr, ContentAudio)> Data;
boost::optional<ContentTime> position () const;
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, boost::shared_ptr<AudioDecoderStream> > _streams;
+ std::map<AudioStreamPtr, ContentTime> _positions;
};
#endif