Setup fast state of decoder after creation.
[dcpomatic.git] / src / lib / audio_decoder.h
index 32d71c0671b849d57c5a4bfa921110fca57526d0..0c9b292174a8014e14c7a06d59d1b9ec0b4e519b 100644 (file)
@@ -45,13 +45,15 @@ class Resampler;
 class AudioDecoder : public boost::enable_shared_from_this<AudioDecoder>, public DecoderPart
 {
 public:
-       AudioDecoder (Decoder* parent, boost::shared_ptr<const AudioContent> content, bool fast);
+       AudioDecoder (Decoder* parent, boost::shared_ptr<const AudioContent> content);
 
        dcpomatic::ContentTime position (boost::shared_ptr<const Film> film) const;
        void emit (boost::shared_ptr<const Film> film, AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, dcpomatic::ContentTime);
        void seek ();
        void flush ();
 
+       void set_fast (bool fast);
+
        dcpomatic::ContentTime stream_position (boost::shared_ptr<const Film> film, AudioStreamPtr stream) const;
 
        /** @return Number of frames of data that were accepted */