diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-27 20:55:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-02 13:38:21 +0100 |
| commit | 0a93237cb5e4642d3b698ff9b7d0cfae5401478c (patch) | |
| tree | b0d5255ae2b90d1c9ef489e78239c2f081ea0a9e /src/lib/sndfile_decoder.h | |
| parent | 608c146eb09fac2a8fc60e1a72591f6bb8364e1f (diff) | |
Handle multiple audio streams in a single piece of content
in a similar way to the V1 patch.
Diffstat (limited to 'src/lib/sndfile_decoder.h')
| -rw-r--r-- | src/lib/sndfile_decoder.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib/sndfile_decoder.h b/src/lib/sndfile_decoder.h index 932394626..4474adc9e 100644 --- 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 <sndfile.h> +#include "sndfile_base.h" class SndfileContent; -class SndfileDecoder : public AudioDecoder, public AudioExaminer +class SndfileDecoder : public Sndfile, public AudioDecoder { 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); - boost::shared_ptr<const SndfileContent> _sndfile_content; - SNDFILE* _sndfile; - SF_INFO _info; int64_t _done; int64_t _remaining; float* _deinterleave_buffer; |
