summaryrefslogtreecommitdiff
path: root/src/lib/audio_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-09-03 22:41:40 +0100
committerCarl Hetherington <cth@carlh.net>2017-09-03 22:41:40 +0100
commit4b2cf0764a4091b9466f90e6dbbeb029e04bc2be (patch)
treedf2833faa1f301b0a8a05a08d68dd922cac51d51 /src/lib/audio_decoder.h
parent257f36fea6aed378c3060c1789294b68b317a456 (diff)
Restore correct setup of fast resampler when the player is set to fast.
Diffstat (limited to 'src/lib/audio_decoder.h')
-rw-r--r--src/lib/audio_decoder.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h
index 359540d6f..ba1520ef5 100644
--- a/src/lib/audio_decoder.h
+++ b/src/lib/audio_decoder.h
@@ -44,7 +44,7 @@ class Resampler;
class AudioDecoder : public boost::enable_shared_from_this<AudioDecoder>, public DecoderPart
{
public:
- AudioDecoder (Decoder* parent, boost::shared_ptr<const AudioContent> content, boost::shared_ptr<Log> log);
+ AudioDecoder (Decoder* parent, boost::shared_ptr<const AudioContent> content, boost::shared_ptr<Log> log, bool fast);
ContentTime position () const;
void emit (AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, ContentTime);
@@ -63,6 +63,8 @@ private:
/** Frame after the last one that was emitted from Data for each AudioStream */
std::map<AudioStreamPtr, Frame> _positions;
std::map<AudioStreamPtr, boost::shared_ptr<Resampler> > _resamplers;
+
+ bool _fast;
};
#endif