Support and General Use > Audio Playback, Database and Playlists

Help changing the format of the default <All Tracks> database menu option result

(1/1)

jgrg1:
Hi,

I'm looking for a bit of help editing the Rockbox code so that I can change the format of the song titles returned by the default <All Tracks> menu options in the database menus. The base behaviour is to return the list of all song title tags for the relevant filter sorted alphabetically. What I'd like to be able to do is specify the format of the song titles, preferably via the tagnavi.config file in a similar way to any other filter. Specifically, I'd like something of the form:

%format "all_fmt_title"       "%d - %s - %02d. %s" year album tracknum title

which should return the list of all songs (for a given artist/genre/whatever) sorted by year, album title, tracknumber and then title.

Having looked at the tagcache.c code and think I've located the relevant function (static int retrieve_entries()):

...
        fmt = NULL;
        /* Check the format */
        for (i = 0; i < format_count; i++)
        {
            if (formats->group_id != csi->format_id[level])
                continue;
           
            if (tagcache_check_clauses(tcs, formats->clause,
                                       formats->clause_count))
            {
                fmt = formats;
                break;
            }
        }
...

but for the "allsubentries" case, how would I specify or hardcode the format?

Cheers
Justin

jgrg1:
After a lot of trawling through Rockbox code, I think I have a solution to this one: FS#9613. It works on my Sansa e280. Please refer to the FlySpray patch for details.

Navigation

[0] Message Index

Go to full version