Rockbox Technical Forums
Support and General Use => Audio Playback, Database and Playlists => Topic started by: Buzkill on August 31, 2021, 09:08:18 AM
-
Been putting some decent time into making a cool custom genre database page and Ive found that if I add anymore code, it seems to break the viewer and how it's supposed to work.
Is there a limit to the size and length of the tagnavi_custom file? Or what could be the issue? I know its not the code, because if I remove any part to make it smaller it starts to work as expected again.
Any ideas? ???
THANK YOU
-
Is there a limit to the size and length of the tagnavi_custom file?
Yes:
#define TAGMENU_MAX_ITEMS 64
#define TAGMENU_MAX_MENUS 32
#define TAGMENU_MAX_FMTS 32
See here: https://github.com/Rockbox/rockbox/blob/c11ed99cb453af968493018e1b83606423d9b9a0/apps/tagtree.h#L30
-
Actually, sorry, I think I sent you to the wrong place. This seems to be the relevant piece of code:
#define TAGCACHE_MAX_CLAUSES 32
https://github.com/Rockbox/rockbox/blob/c11ed99cb453af968493018e1b83606423d9b9a0/apps/tagcache.h#L84
-
Wait, no, now I'm confusing myself. I was right before (I think). :D
-
Im not quite sure what your pointing out :D is it something i can change or no?
I mean obviously i can change the value and recompile, but why did they pick that limit to begin with?
Would be interested to know how high you could push that without major problems but i have no clue what it would effect
-
OMG THANK YOU!!!!! that worked.
-
Im not quite sure what your pointing out :D is it something i can change or no?
I mean obviously i can change the value and recompile, but why did they pick that limit to begin with?
Would be interested to know how high you could push that without major problems but i have no clue what it would effect
I'm assuming RAM usage and possibly execution speed. The effect is probably going to be negligible on something like an iPod classic if you don't go crazy with the values.
OMG THANK YOU!!!!! that worked.
Cool!