X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsndfile_decoder.h;h=844d1cdc42818219e81e82a7cf1f04077851e6b6;hb=6fde557864505b470c438e4161ee494f29b90d63;hp=932394626407df4d18292344da435bb4ba36fc8a;hpb=387304bc9147933b68eda2b38ba8cac0d250e87e;p=dcpomatic.git diff --git a/src/lib/sndfile_decoder.h b/src/lib/sndfile_decoder.h index 932394626..844d1cdc4 100644 --- a/src/lib/sndfile_decoder.h +++ b/src/lib/sndfile_decoder.h @@ -17,30 +17,21 @@ */ -#include "decoder.h" #include "audio_decoder.h" -#include "audio_examiner.h" -#include +#include "sndfile_base.h" class SndfileContent; -class SndfileDecoder : public AudioDecoder, public AudioExaminer +class SndfileDecoder : public Sndfile, public AudioDecoder { public: - SndfileDecoder (boost::shared_ptr c); + SndfileDecoder (boost::shared_ptr c, bool fast); ~SndfileDecoder (); - int audio_channels () const; - Frame audio_length () const; - int audio_frame_rate () const; - private: - bool pass (PassReason); + bool pass (PassReason, bool); void seek (ContentTime, bool); - - boost::shared_ptr _sndfile_content; - SNDFILE* _sndfile; - SF_INFO _info; + int64_t _done; int64_t _remaining; float* _deinterleave_buffer;