Basics of splitting up Decoder tree like Content.
[dcpomatic.git] / src / lib / audio_decoder_stream.h
index 3503a46d107d76468474e7202e04b9dd382506ed..265bbe0044f36479569e59e626b547206acd91e8 100644 (file)
 class AudioContent;
 class AudioDecoder;
 class Resampler;
+class Log;
+class Decoder;
 
 class AudioDecoderStream
 {
 public:
-       AudioDecoderStream (boost::shared_ptr<const AudioContent>, AudioStreamPtr, AudioDecoder* decoder);
+       AudioDecoderStream (boost::shared_ptr<const AudioContent>, AudioStreamPtr, Decoder* decoder, boost::shared_ptr<Log> log);
 
        ContentAudio get (Frame time, Frame length, bool accurate);
        void audio (boost::shared_ptr<const AudioBuffers>, ContentTime);
@@ -46,7 +48,8 @@ private:
 
        boost::shared_ptr<const AudioContent> _content;
        AudioStreamPtr _stream;
-       AudioDecoder* _decoder;
+       Decoder* _decoder;
+       boost::shared_ptr<Log> _log;
        boost::shared_ptr<Resampler> _resampler;
        boost::optional<Frame> _position;
        /** Currently-available decoded audio data */