Basic grunt-work, untested and unfinished, but it compiles.
[dcpomatic.git] / src / lib / audio_decoder.cc
index 1b1ae70c0c8195bb27fd95d3e667dc3f03b6e464..b866d3ecf14f65abfb99278fa6e35d6f0e9b25af 100644 (file)
@@ -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;
@@ -89,15 +83,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 ()
 {