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 Development
| |-+  Starting Development and Compiling
| | |-+  Simplyfying Rockbox for Sansa; How hard would this be?
« previous next »
  • Print
Pages: [1]

Author Topic: Simplyfying Rockbox for Sansa; How hard would this be?  (Read 2276 times)

Offline jacksoncougar

  • Member
  • *
  • Posts: 9
Simplyfying Rockbox for Sansa; How hard would this be?
« on: November 23, 2007, 01:47:26 AM »
In short I want to rewrite Rockbox so that:

it plays most common audio files

when you press the middle button of the sansa the player should play a randomly selected song from the "music" folder

another press skips ahead to another song.

A long press will pause the current song.

The scroll wheel will remain volume control.

The power button will become a quick 2 second on/off.

I want to know what the actual time and effort would be required to do this.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Simplyfying Rockbox for Sansa; How hard would this be?
« Reply #1 on: November 23, 2007, 02:07:01 AM »
What other formats do you need than those rockbox already plays?

To change the keymap, you need to edit the code then compile.  Set up a dev environment, then look at /apps/keymaps/your-target.c  It is pretty easy to edit the keymap, then compile and away you go.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline jacksoncougar

  • Member
  • *
  • Posts: 9
Re: Simplyfying Rockbox for Sansa; How hard would this be?
« Reply #2 on: November 23, 2007, 02:11:46 AM »
No more formats really; mp3 audio will be almost all I ever use.

I wanted to know would it be easy to make it start-up and do nothing.

Then when the middle key is pressed it automatically plays a random song.

My LCD is broken so that should help you visualize my goal with this edit.
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Simplyfying Rockbox for Sansa; How hard would this be?
« Reply #3 on: November 23, 2007, 02:24:31 AM »
Quote from: jacksoncougar on November 23, 2007, 02:11:46 AM
I wanted to know would it be easy to make it start-up and do nothing.
Just don't enable the "resume playback on startup" setting.

You can alter your settings by editing .rockbox/config.cfg by hand.
« Last Edit: November 23, 2007, 02:27:21 AM by cool_walking_ »
Logged

Offline frause

  • Member
  • *
  • Posts: 56
Re: Simplyfying Rockbox for Sansa; How hard would this be?
« Reply #4 on: November 23, 2007, 03:02:27 AM »
Quote
My LCD is broken so that should help you visualize my goal with this edit.

Have you tried the voice interface? A rockboxed sansa is actually very nice even without LCD.
Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: Simplyfying Rockbox for Sansa; How hard would this be?
« Reply #5 on: November 23, 2007, 09:21:15 AM »
You could accomplish almost everything that you want to do by making a playlist of your music folder and either shuffling the playlist or setting the "shuffle" setting to "all."  When you turn on the player, you could resume the playlist by pressing play, and then skip to a random song by pressing the >>| button.  
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline jacksoncougar

  • Member
  • *
  • Posts: 9
Re: Simplyfying Rockbox for Sansa; How hard would this be?
« Reply #6 on: November 23, 2007, 04:29:41 PM »
Thats currently how I have it set up. The reason I want to dedicate everything to the middle button is because my outer case was also damaged and I am planing on replacing it with a wooden shell. I had planned on removing the "play" ">>" "<<" and ":..?" buttons, keeping only the power button, the ring, and the middle button, all of which I will be re-facing with wood as well.

Before I went ahead with the actual physical modifications though I wanted to make sure I could set my sansa up as I wanted.

Also I forgot to mention but would I be able to make it play all music on a microSD card as well without any extra button presses needed? I've never used a microSD card so I am unsure.

Looking at the keymap source I have run into a quick problem; I want to be able to have it skip ahead a song with a quick press of the select button, but pause with a long press, and after reading somewhat through these forums I would also like to implement a double click to repeat last song.
So:
Quick press --> Next Song
Long Press --> Pause
Double Press --> Repeat Current

Can someone point me in the direction of how to achieve this? Also will putting Button_None like this:

Code: [Select]
{ ACTION_STD_PREV,        BUTTON_NONE,                 BUTTON_NONE },
{ ACTION_STD_PREVREPEAT,  BUTTON_NONE, BUTTON_NONE },

Disable the function? (Make it inaccessible)
« Last Edit: November 23, 2007, 04:42:30 PM by jacksoncougar »
Logged

Offline kendubya

  • Member
  • *
  • Posts: 6
Re: Simplyfying Rockbox for Sansa; How hard would this be?
« Reply #7 on: November 23, 2007, 08:47:12 PM »
One thing you could consider, if you don't mind throwing a little money at your problem, is searching on eBay for the terms "Sansa" and "As is".
I saw quite a few listings for Sansa e200s that had small defects, or functionality issues, that may provide the parts you need to repair your own player.  Some were going for $20 or less.

In any case, good luck!
Logged

Offline jacksoncougar

  • Member
  • *
  • Posts: 9
Re: Simplyfying Rockbox for Sansa; How hard would this be?
« Reply #8 on: November 23, 2007, 09:16:47 PM »
Not interested in doing that; this is a hold-over until I but something else. Plus I figure this will take less time then the shipping would.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Simplyfying Rockbox for Sansa; How hard would this be?
 

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

Page created in 0.102 seconds with 14 queries.