X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_decoder.cc;h=1f5868583675314df9158517d6159c2c13bce7ef;hb=78e5a331074a456097a162d47501daf1df1ab1a3;hp=9d8de971c654356a753f85fc48b8618d49568fc9;hpb=1f2bc4d8f3601ad1e12b94f37b3889fcd003509b;p=dcpomatic.git diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index 9d8de971c..1f5868583 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -18,19 +18,30 @@ */ #include "audio_decoder.h" -#include "stream.h" +#include "audio_buffers.h" +#include "exceptions.h" +#include "log.h" +#include "resampler.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 film) + : Decoder (film) + , _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 (); }