Updated nl_NL translation from Rob van Nieuwkerk.
[dcpomatic.git] / src / lib / sndfile_decoder.cc
index 2fa9ae2a3c48df0328f618016c65a5f1bc64e599..ac01e0da87c99bf23fbc23da0b7ad4fc4a5eb4f9 100644 (file)
@@ -32,9 +32,9 @@ using std::min;
 using std::cout;
 using boost::shared_ptr;
 
-SndfileDecoder::SndfileDecoder (shared_ptr<const SndfileContent> c)
+SndfileDecoder::SndfileDecoder (shared_ptr<const SndfileContent> c, bool fast)
        : Sndfile (c)
-       , AudioDecoder (c)
+       , AudioDecoder (c, fast)
        , _done (0)
        , _remaining (_info.frames)
        , _deinterleave_buffer (0)
@@ -48,7 +48,7 @@ SndfileDecoder::~SndfileDecoder ()
 }
 
 bool
-SndfileDecoder::pass ()
+SndfileDecoder::pass (PassReason, bool)
 {
        if (_remaining == 0) {
                return true;
@@ -98,6 +98,6 @@ SndfileDecoder::seek (ContentTime t, bool accurate)
 {
        AudioDecoder::seek (t, accurate);
 
-       _done = t.frames (_info.samplerate);
+       _done = t.frames_round (_info.samplerate);
        _remaining = _info.frames - _done;
 }