- boost::shared_ptr<const AudioContent> _audio_content;
- boost::shared_ptr<Resampler> _resampler;
- boost::optional<AudioFrame> _audio_position;
- /** Currently-available decoded audio data */
- ContentAudio _decoded_audio;
+ ContentTime stream_position (AudioStreamPtr stream) const;
+
+ /** @return Number of frames of data that were accepted */
+ boost::signals2::signal<void (AudioStreamPtr, ContentAudio)> Data;
+
+private:
+ void silence (int milliseconds);
+
+ boost::shared_ptr<const AudioContent> _content;
+ /** Frame after the last one that was emitted from Data (i.e. at the resampled rate, if applicable)
+ * for each AudioStream.
+ */
+ typedef std::map<AudioStreamPtr, Frame> PositionMap;
+ PositionMap _positions;
+ typedef std::map<AudioStreamPtr, boost::shared_ptr<Resampler> > ResamplerMap;
+ ResamplerMap _resamplers;
+
+ bool _fast;