if (_ffmpeg_content->audio_stream() && _decode_audio) {
decode_audio_packet ();
}
-
-#if 0
- /* XXX */
- /* Stop us being asked for any more data */
- _video_position = _ffmpeg_content->video_length ();
- _audio_position = _ffmpeg_content->audio_length ();
-#endif
}
bool
}
data->set_frames (this_time);
- audio (data, _done);
+ audio (data, _done * TIME_HZ / audio_frame_rate ());
_done += this_time;
_remaining -= this_time;
SndfileDecoder::seek (ContentTime t, bool accurate)
{
Decoder::seek (t, accurate);
-
- /* XXX */
+
+ _done = t * audio_frame_rate() / TIME_HZ;
+ _remaining = _info.frames - _done;
}