diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-21 16:57:15 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-04-19 23:04:32 +0100 |
| commit | de2af791bdfdcd653752cba970e59efc7bf810c7 (patch) | |
| tree | 1aa5dbc35daee0babd0def347944a6bea4154deb /src/lib/audio_decoder.cc | |
| parent | 06152300e69e8faca44ff8d7f12a6fd354848b9a (diff) | |
Basic grunt-work, untested and unfinished, but it compiles.
Diffstat (limited to 'src/lib/audio_decoder.cc')
| -rw-r--r-- | src/lib/audio_decoder.cc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index 1b1ae70c0..b866d3ecf 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -42,14 +42,8 @@ AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr<const AudioContent> cont } } -ContentAudio -AudioDecoder::get (AudioStreamPtr stream, Frame frame, Frame length, bool accurate) -{ - return _streams[stream]->get (frame, length, accurate); -} - void -AudioDecoder::give (AudioStreamPtr stream, shared_ptr<const AudioBuffers> data, ContentTime time) +AudioDecoder::emit (AudioStreamPtr stream, shared_ptr<const AudioBuffers> data, ContentTime time) { if (ignore ()) { return; @@ -90,15 +84,6 @@ AudioDecoder::flush () } void -AudioDecoder::seek (ContentTime t, bool accurate) -{ - _log->log (String::compose ("AD seek to %1", to_string(t)), LogEntry::TYPE_DEBUG_DECODE); - for (StreamMap::const_iterator i = _streams.begin(); i != _streams.end(); ++i) { - i->second->seek (t, accurate); - } -} - -void AudioDecoder::set_fast () { for (StreamMap::const_iterator i = _streams.begin(); i != _streams.end(); ++i) { |
