|
Rockbox mail archiveSubject: ResumeResume
From: Björn Stenberg <bjorn_at_haxx.se>
Date: Fri, 16 Aug 2002 17:52:50 +0200 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! -- BjörnReceived on 2002-08-16 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |