diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-22 01:47:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-22 01:47:28 +0100 |
| commit | 76f83b97c401c24b3c93baee0665e84be05f43ea (patch) | |
| tree | 75e7f3e87f3721c8ac4c55ac6bc9559556954987 /src/lib/audio_decoder.cc | |
| parent | 5e9e59e044fe3b51352d5dccad7f11882c6a571c (diff) | |
Set AudioDecoder::fast a different way.
Diffstat (limited to 'src/lib/audio_decoder.cc')
| -rw-r--r-- | src/lib/audio_decoder.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index 8c395cb89..4b89dc620 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -31,12 +31,12 @@ using std::cout; using std::map; using boost::shared_ptr; -AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr<const AudioContent> content, bool fast, shared_ptr<Log> log) +AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr<const AudioContent> content, shared_ptr<Log> log) : _ignore (false) - , _fast (fast) + , _fast (false) { BOOST_FOREACH (AudioStreamPtr i, content->streams ()) { - _streams[i] = shared_ptr<AudioDecoderStream> (new AudioDecoderStream (content, i, parent, fast, log)); + _streams[i] = shared_ptr<AudioDecoderStream> (new AudioDecoderStream (content, i, parent, log)); } } @@ -101,3 +101,11 @@ AudioDecoder::set_ignore () { _ignore = true; } + +void +AudioDecoder::set_fast () +{ + for (map<AudioStreamPtr, shared_ptr<AudioDecoderStream> >::const_iterator i = _streams.begin(); i != _streams.end(); ++i) { + i->second->set_fast (); + } +} |
