Rockbox mail archiveSubject: Re: Resume
From: Eric Linenberg <elinenbe_at_umich.edu>
Date: Fri, 16 Aug 2002 12:13:25 -0400
This is great news, and I have been playing around with it quite a
some suggestions: resume where the cursor was in the treeview
(directory listing) either on the playlist (if we are resuming in a
playlist) or on the current song if we are resuming on a song.
Currently, the way it works is the cursor just starts at the top of
the root directory.
BS> Hi all.
BS> 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.
BS> Recorders handle all this pretty transparently, using their RTC ram for data that changes frequently (such as position in file).
BS> 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
BS> (reading mp3 data, scanning a dir, whatever). This means that the stored file position at times can be over a minute "behind" on players.
BS> 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
BS> and then shutdown by holding STOP.
BS> There are a few bugs left to squash:
BS> - In some special occations it resumes to the wrong track. Unclear why.
BS> - On mid-track resume, time starts at 0:00 instead of mid-track.
BS> - Ffwd/rew does not advance the resume position
BS> 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