throw DecodeError (_("could not open audio file for reading"));
}
+ _done = 0;
_remaining = _info.frames;
}
}
data->set_frames (this_time);
- audio (data);
+ audio (data, _done * TIME_HZ / audio_frame_rate ());
+ _done += this_time;
_remaining -= this_time;
return _remaining == 0;
Decoder::seek (t, accurate);
AudioDecoder::seek (t, accurate);
+ _done = t * audio_frame_rate() / TIME_HZ;
_remaining = _info.frames - _done;
}