projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle multiple audio streams in a single piece of content
[dcpomatic.git]
/
src
/
lib
/
sndfile_decoder.h
diff --git
a/src/lib/sndfile_decoder.h
b/src/lib/sndfile_decoder.h
index 932394626407df4d18292344da435bb4ba36fc8a..4474adc9e3b37dba35bf62bd689ec318e973e643 100644
(file)
--- a/
src/lib/sndfile_decoder.h
+++ b/
src/lib/sndfile_decoder.h
@@
-20,27
+20,20
@@
#include "decoder.h"
#include "audio_decoder.h"
#include "audio_examiner.h"
#include "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:
SndfileDecoder (boost::shared_ptr<const SndfileContent> c);
~SndfileDecoder ();
{
public:
SndfileDecoder (boost::shared_ptr<const SndfileContent> c);
~SndfileDecoder ();
- int audio_channels () const;
- Frame audio_length () const;
- int audio_frame_rate () const;
-
private:
bool pass (PassReason);
void seek (ContentTime, bool);
private:
bool pass (PassReason);
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;