diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-09 09:50:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-09 09:50:48 +0100 |
| commit | f26af8112b03b5233eb5239defd11a7428b705ad (patch) | |
| tree | a7385c484829f531bbbc35b3f38235035e160a92 /src/lib/audio_decoder.h | |
| parent | 272ce54d159a53be22f592922913901cfc673097 (diff) | |
Use SRC_LINEAR for speed when analysing audio (#685).
Diffstat (limited to 'src/lib/audio_decoder.h')
| -rw-r--r-- | src/lib/audio_decoder.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h index d5e7c6f55..716b37969 100644 --- a/src/lib/audio_decoder.h +++ b/src/lib/audio_decoder.h @@ -39,7 +39,7 @@ class AudioDecoderStream; class AudioDecoder : public virtual Decoder, public boost::enable_shared_from_this<AudioDecoder> { public: - AudioDecoder (boost::shared_ptr<const AudioContent>); + AudioDecoder (boost::shared_ptr<const AudioContent>, bool fast); boost::shared_ptr<const AudioContent> audio_content () const { return _audio_content; @@ -55,6 +55,10 @@ public: void set_ignore_audio (); + bool fast () const { + return _fast; + } + protected: void audio (AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, ContentTime); void flush (); @@ -65,6 +69,7 @@ private: /** An AudioDecoderStream object to manage each stream in _audio_content */ std::map<AudioStreamPtr, boost::shared_ptr<AudioDecoderStream> > _streams; bool _ignore_audio; + bool _fast; }; #endif |
