summaryrefslogtreecommitdiff
path: root/src/lib/audio_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-09 09:50:48 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-09 09:50:48 +0100
commitf26af8112b03b5233eb5239defd11a7428b705ad (patch)
treea7385c484829f531bbbc35b3f38235035e160a92 /src/lib/audio_decoder.cc
parent272ce54d159a53be22f592922913901cfc673097 (diff)
Use SRC_LINEAR for speed when analysing audio (#685).
Diffstat (limited to 'src/lib/audio_decoder.cc')
-rw-r--r--src/lib/audio_decoder.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc
index 268a9d296..2944357ba 100644
--- a/src/lib/audio_decoder.cc
+++ b/src/lib/audio_decoder.cc
@@ -30,9 +30,10 @@ using std::cout;
using std::map;
using boost::shared_ptr;
-AudioDecoder::AudioDecoder (shared_ptr<const AudioContent> content)
+AudioDecoder::AudioDecoder (shared_ptr<const AudioContent> content, bool fast)
: _audio_content (content)
, _ignore_audio (false)
+ , _fast (fast)
{
BOOST_FOREACH (AudioStreamPtr i, content->audio_streams ()) {
_streams[i] = shared_ptr<AudioDecoderStream> (new AudioDecoderStream (_audio_content, i, this));