Rockbox mail archiveSubject: Re: Resume
From: Mike Soultanian <msoultan_at_csulb.edu>
Date: Fri, 16 Aug 2002 10:44:05 -0700
pretty damn slick, I might add. You guys have been doing an excellent
job on this project!!
Björn Stenberg wrote:
> Hi all.
> I just added Resume support to the CVS code. It handles dir-play resume and playlist resume in normal and shuffled mode, and also does mid-track resume.
> Recorders handle all this pretty transparently, using their RTC ram for data that changes frequently (such as position in file).
> Players, however, need to write this information to disk. This is handled using so called "delayed writes" that don't actually write the information until the disk is spun up for another reason (reading mp3 data, scanning a dir, whatever). This means that the stored file position at times can be over a minute "behind" on players.
> To fix this, I've made it so that when you pause playback, this delayed data is flushed to disk. So to get an accurate mid-track resume on players first pause the playback, let it flush to disk and then shutdown by holding STOP.
> There are a few bugs left to squash:
> - In some special occations it resumes to the wrong track. Unclear why.
> - On mid-track resume, time starts at 0:00 instead of mid-track.
> - Ffwd/rew does not advance the resume position
> We need to polish this and the ffwd/rew code a bit, but after that I think we're ready to let 1.3 out the door. Good work, everyone!
-- [...]Received on 2002-08-16