X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsndfile_decoder.h;h=46d9c5e5cf24762b5c2733e4f8c0be6c035a4d97;hb=8353a009aae1a604251c0160193c39741c2fa27c;hp=a513037d94fed79905a3e1ce489c6ae246eb62c7;hpb=e8819ad7580f25eea7ca3c59cf0a3979d76a6b44;p=dcpomatic.git diff --git a/src/lib/sndfile_decoder.h b/src/lib/sndfile_decoder.h index a513037d9..46d9c5e5c 100644 --- a/src/lib/sndfile_decoder.h +++ b/src/lib/sndfile_decoder.h @@ -29,18 +29,19 @@ public: SndfileDecoder (boost::shared_ptr, boost::shared_ptr); ~SndfileDecoder (); - void pass (); - Time next (); + void seek (ContentTime, bool); int audio_channels () const; - ContentAudioFrame audio_length () const; + AudioFrame audio_length () const; int audio_frame_rate () const; private: + bool pass (); + boost::shared_ptr _sndfile_content; SNDFILE* _sndfile; SF_INFO _info; - ContentAudioFrame _done; - ContentAudioFrame _remaining; + AudioFrame _done; + AudioFrame _remaining; float* _deinterleave_buffer; };