X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_decoder.cc;h=59c631632f3f63b735a883dd1292c46403e4ec64;hb=a03508f3d05cb11fd6f40610e32f31ef23a7a450;hp=df13a984a4b36416fb1120b6512aca4537484f6c;hpb=5859b758e3a6e0191ce12e77b636c7def58bbc3b;p=dcpomatic.git diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index df13a984a..59c631632 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -18,12 +18,29 @@ */ #include "audio_decoder.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) : Decoder (f) + , _audio_position (0) { } + +void +AudioDecoder::audio (shared_ptr data, AudioContent::Frame frame) +{ + Audio (data, frame); + _audio_position = frame + data->frames (); +}