Rockbox General > Rockbox General Discussion
Hacking RockBox for my own use
(1/1)
karavshin:
I want to customize an instance of Rockbox to play a random song from the library at a random interval.
What's the best way to do this? The obvious was to download the source, modify it to what I want, and recompile. But I was wondering if there were some short-cut solutions, perhaps using a plug-in, or something like that.
bascule:
You would still have to write the plugin and potentially re-compile it everytime the source changed, so I guess it would be best just to write a patch you could re-apply every time you wanted to update.
karavshin:
Thanks. So what I am asking is, does it make more sense to write a plug-in or actually patch main code?
Is there any document around that discusses the overall architecture of Rockbox, a roadmap to where I should look to make my changes?
thanks
linuxstb:
This sounds like the kind of feature which is best implemented by a patch to the Rockbox playback/playlist code, rather than a plugin.
If I understand correctly, you want Rockbox to play a track at random, then pause for a random amount of time, and then play another track at random, and so on ?
So assuming you're happy with Rockbox's existing shuffle and playlists features to pick your songs at random, all that you would appear to need to do is to add the random-length pause between tracks.
The place to look to do this is apps/playback.c Sorry, I can't be any more specific - I don't know that code very well.
Regarding documentation - there is a fair amount of developer-related documentation in the wiki (see the For Developers section in the index), but there is never enough. The fact of life is that most Rockbox contributors prefer to code instead of writing about coding.
The best place for answers to specific questions about how Rockbox works is the IRC channel.
I'm curious to know why you want such a feature though.
Navigation
[0] Message Index
Go to full version