Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Help changing the format of the default <All Tracks> database menu option result
« previous next »
  • Print
Pages: [1]

Author Topic: Help changing the format of the default <All Tracks> database menu option result  (Read 1477 times)

Offline jgrg1

  • Member
  • *
  • Posts: 18
Help changing the format of the default <All Tracks> database menu option result
« on: November 17, 2008, 07:35:43 PM »
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
Logged

Offline jgrg1

  • Member
  • *
  • Posts: 18
Re: Help changing the format of the default <All Tracks> database menu option result
« Reply #1 on: December 08, 2008, 07:54:09 AM »
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.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Help changing the format of the default <All Tracks> database menu option result
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.045 seconds with 15 queries.