X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_decoder.cc;h=59c631632f3f63b735a883dd1292c46403e4ec64;hb=a03508f3d05cb11fd6f40610e32f31ef23a7a450;hp=70f0effd9faa742bf5e744ab71d2dd8ff35e35b0;hpb=cafa76a2b52449ce3c9eecfd0ea53b7318814951;p=dcpomatic.git diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index 70f0effd9..59c631632 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -18,19 +18,29 @@ */ #include "audio_decoder.h" -#include "stream.h" +#include "audio_buffers.h" +#include "exceptions.h" +#include "log.h" +#include "i18n.h" + +using std::stringstream; +using std::list; +using std::pair; +using std::cout; using boost::optional; using boost::shared_ptr; -AudioDecoder::AudioDecoder (shared_ptr f, shared_ptr o, Job* j) - : Decoder (f, o, j) +AudioDecoder::AudioDecoder (shared_ptr f) + : Decoder (f) + , _audio_position (0) { } void -AudioDecoder::set_audio_stream (shared_ptr s) +AudioDecoder::audio (shared_ptr data, AudioContent::Frame frame) { - _audio_stream = s; + Audio (data, frame); + _audio_position = frame + data->frames (); }