X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsndfile_decoder.h;h=77fa6d17734da4096757dae504a759c9925e0e8b;hb=57b87d4260231643ad1a5aa1000d99b1d62f0a56;hp=56fc3a9f08bc7811d4a6d7720992874d5a13b393;hpb=6809fdcbf8c65afe3c986b0e2b430d55ce7b124c;p=dcpomatic.git diff --git a/src/lib/sndfile_decoder.h b/src/lib/sndfile_decoder.h index 56fc3a9f0..77fa6d177 100644 --- a/src/lib/sndfile_decoder.h +++ b/src/lib/sndfile_decoder.h @@ -27,12 +27,20 @@ class SndfileDecoder : public AudioDecoder { public: SndfileDecoder (boost::shared_ptr, boost::shared_ptr); + ~SndfileDecoder (); - bool pass (); + void pass (); + bool done () const; -private: - SNDFILE* open_file (sf_count_t &); - void close_file (SNDFILE*); + int audio_channels () const; + AudioContent::Frame audio_length () const; + int audio_frame_rate () const; +private: boost::shared_ptr _sndfile_content; + SNDFILE* _sndfile; + SF_INFO _info; + AudioContent::Frame _done; + AudioContent::Frame _remaining; + float* _deinterleave_buffer; };