Various work on better seeking (and seeking of audio).
[dcpomatic.git] / src / lib / sndfile_decoder.cc
index 8374abbe9a0ec7a68c88a12baca5e38bbc29b4ee..0cca25257f538f0a25e650d054e0df3610671e62 100644 (file)
@@ -40,7 +40,7 @@ SndfileDecoder::SndfileDecoder (shared_ptr<const Film> f, shared_ptr<const Sndfi
        , _deinterleave_buffer (0)
 {
        _info.format = 0;
-       _sndfile = sf_open (_sndfile_content->file().string().c_str(), SFM_READ, &_info);
+       _sndfile = sf_open (_sndfile_content->path(0).string().c_str(), SFM_READ, &_info);
        if (!_sndfile) {
                throw DecodeError (_("could not open audio file for reading"));
        }
@@ -118,3 +118,9 @@ SndfileDecoder::done () const
 {
        return _audio_position >= _sndfile_content->audio_length ();
 }
+
+void
+SndfileDecoder::seek (Time t, bool accurate)
+{
+       /* XXX */
+}