projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Avoid decoding other packets when looking for subs."
[dcpomatic.git]
/
src
/
lib
/
sndfile_decoder.h
diff --git
a/src/lib/sndfile_decoder.h
b/src/lib/sndfile_decoder.h
index 932394626407df4d18292344da435bb4ba36fc8a..da9016ee09a958c26211df60e4ae68b6a1d9620d 100644
(file)
--- 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_decoder.h"
-#include "audio_examiner.h"
-#include <sndfile.h>
+#include "sndfile_base.h"
class SndfileContent;
class SndfileContent;
-class SndfileDecoder : public
AudioDecoder, public AudioExamin
er
+class SndfileDecoder : public
Sndfile, public AudioDecod
er
{
public:
{
public:
- SndfileDecoder (boost::shared_ptr<const SndfileContent> c);
+ SndfileDecoder (boost::shared_ptr<const SndfileContent> c
, bool fast
);
~SndfileDecoder ();
~SndfileDecoder ();
- int audio_channels () const;
- Frame audio_length () const;
- int audio_frame_rate () const;
-
private:
private:
- bool pass (
PassReason
);
+ bool pass ();
void seek (ContentTime, bool);
void seek (ContentTime, bool);
-
- boost::shared_ptr<const SndfileContent> _sndfile_content;
- SNDFILE* _sndfile;
- SF_INFO _info;
+
int64_t _done;
int64_t _remaining;
float* _deinterleave_buffer;
int64_t _done;
int64_t _remaining;
float* _deinterleave_buffer;