delete[] _deinterleave_buffer;
}
-void
+bool
SndfileDecoder::pass ()
{
+ if (_remaining == 0) {
+ return true;
+ }
+
/* Do things in half second blocks as I think there may be limits
to what FFmpeg (and in particular the resampler) can cope with.
*/
audio (data, _done);
_done += this_time;
_remaining -= this_time;
+
+ return true;
}
int
return _info.samplerate;
}
-bool
-SndfileDecoder::done () const
-{
- return _audio_position >= _sndfile_content->audio_length ();
-}
-
void
-SndfileDecoder::seek (DCPTime t, bool accurate)
+SndfileDecoder::seek (ContentTime t, bool accurate)
{
+ Decoder::seek (t, accurate);
+
/* XXX */
}