X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_decoder.h;h=716b37969d87986d5ebf449ea98a4a68900f5849;hb=f26af8112b03b5233eb5239defd11a7428b705ad;hp=d5e7c6f551584b7f6547e4318b84c79ea04dc54e;hpb=272ce54d159a53be22f592922913901cfc673097;p=dcpomatic.git diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h index d5e7c6f55..716b37969 100644 --- a/src/lib/audio_decoder.h +++ b/src/lib/audio_decoder.h @@ -39,7 +39,7 @@ class AudioDecoderStream; class AudioDecoder : public virtual Decoder, public boost::enable_shared_from_this { public: - AudioDecoder (boost::shared_ptr); + AudioDecoder (boost::shared_ptr, bool fast); boost::shared_ptr audio_content () const { return _audio_content; @@ -55,6 +55,10 @@ public: void set_ignore_audio (); + bool fast () const { + return _fast; + } + protected: void audio (AudioStreamPtr stream, boost::shared_ptr, ContentTime); void flush (); @@ -65,6 +69,7 @@ private: /** An AudioDecoderStream object to manage each stream in _audio_content */ std::map > _streams; bool _ignore_audio; + bool _fast; }; #endif