Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re[2]: Bookmark Files
From: Eric Linenberg (elinenbe_at_umich.edu)
Date: 2003-01-17


What I am afraid of is the floater files... randome files everywhere
on the jukebox. How come the bookmark file could not just be
something like artist-pink floyd-tracks.bmark and artist-skinny
puppies-tracks.bmark? If you use some of the path, then there would
be no worry of duplication.

-eric

B> Um, way more complex then I wanna do :-).

B> Essentially the way it works now is this:
B> 1. Each bookmark file is kept in the same directory as file it's
B> associated with (\artist\pink floyd\tracks.m3u has a file in the same
B> directory called tracks.m3u.bmark). I'm avoiding a centralized
B> directory because I don't want to figure out how to handle duplicate
B> names (\artist\skinny puppies\tracks.m3u would give the same bookmark
B> name as the above example if it were centralized, tracks.m3u.bmark).
B> Call me lazy :-).
B> 2. This file can have 10 bookmarks (actually it can have any number
B> more, but I gave a hard stop at 10 just for fun). Each bookmark
B> contains various information, including index (in the case of M3Us) and
B> elapsed time.
B> 3. The multi-resume leverages this file by reserving the first line of
B> the file for its information (which is just a bookmark). If auto-load
B> bookmark (resume) is enabled, it will look for the .bmark file and if it
B> finds it, will load the first bookmark in that file.
B> 4. There are two new settings, Enable AutoBookmark and Enable Autoload
B> Bookmark. Both have "Yes", "No", and "Ask" and are how #3 works.
B> 4.1 Enable AutoBookmark enables the resume feature that
B> leverages bookmarks. Set it to Yes, and it will automatically write the
B> resume information. No disables it. Ask prompts the user.
B> 4.2 Enable Autoload will enable the checking in 3 and depending
B> on the setting will automatically load, prompt the user, or never load.
B> 5. I coded out a bookmark menu today. Select the .bmark file in the
B> directory explorer and that bookmark file is read in and the first
B> bookmark is displayed, with the index (for M3Us) and the elapsed time.
B> Click PLAY to select that bookmark. Click UP or DOWN to show the next
B> or previous bookmark. I may add the MP3 information name also. I'll
B> decide tomorrow. I'm not going to do much more with the menu beyond
B> this.

B> The more I think about it, the more I prefer the single bookmark file
B> vs. my original design, which was one file for bookmarks, one for resume
B> information. The original design just had to many files floating around
B> (the MP3, the .resume, and the .bmark). I'll post an updated patch
B> Friday with these changes.

B> Ben



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa