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
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Hacking RockBox for my own use
« previous next »
  • Print
Pages: [1]

Author Topic: Hacking RockBox for my own use  (Read 1479 times)

Offline karavshin

  • Member
  • *
  • Posts: 2
Hacking RockBox for my own use
« on: June 16, 2007, 11:35:49 AM »
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.

Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Hacking RockBox for my own use
« Reply #1 on: June 16, 2007, 01:37:37 PM »
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.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline karavshin

  • Member
  • *
  • Posts: 2
Re: Hacking RockBox for my own use
« Reply #2 on: June 16, 2007, 09:00:21 PM »
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
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: Hacking RockBox for my own use
« Reply #3 on: June 17, 2007, 04:56:32 AM »
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.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Hacking RockBox for my own use
 

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

Page created in 3.764 seconds with 16 queries.