Rockbox Technical Forums

Support and General Use => Plugins/Viewers => Topic started by: Artursk on April 20, 2010, 04:19:24 AM

Title: Metronome on sansa clip
Post by: Artursk on April 20, 2010, 04:19:24 AM
it's impossible to use metronome on sansa(v1) because the Start/Stop key isn't defined.
it could be home button - the only button witch is not used in that plungin.

is there some way I can set that button?

Title: Re: Metronome on sansa clip
Post by: Chronon on April 21, 2010, 03:06:15 AM
Hi.  You will need to check out the source and change the key map.  I think the key map should probably be changed anyway, so that the volume rocker controls volume.  This would free up the play/pause button to start/stop the metronome (a logical choice, I think).

If you feel up to it, a patch to improve the key map would be welcomed.
Title: Re: Metronome on sansa clip
Post by: Artursk on April 22, 2010, 11:15:34 AM
Hi,is there some Program I can edit .rock files??
 
cause my knowledge in programming stuff is pretty poor and I wont be able to make a patch if it's a difficult thing to do :-\
Title: Re: Metronome on sansa clip
Post by: Eric Einem on April 22, 2010, 05:50:22 PM
You find can what you need here:
http://www.rockbox.org/wiki/HowtoWritePlugins
Title: Re: Metronome on sansa clip
Post by: Artursk on April 23, 2010, 06:43:58 AM
thats what is said on manual is understandable. the problem is -how can i view the plungin code as a text?

p.s. sory for asking so meny questions.
Title: Re: Metronome on sansa clip
Post by: Eric Einem on April 23, 2010, 12:46:13 PM
Did you follow the Development Guide instructions for setting up the development environment and getting the source code using SVN?

The metronome source code is in rockbox\apps\plugins\metronome.c

Title: Re: Metronome on sansa clip
Post by: Artursk on July 04, 2010, 12:54:18 PM
so i got the code and added key map for sansa clip - how can I apply to my player and see if it works?
Title: Re: Metronome on sansa clip
Post by: Chronon on July 05, 2010, 01:53:03 PM
You need to build the source as described in the docs index.  Check the SimpleGuideToCompiling for instructions on compiling Rockbox in Windows.  After that, you can consult the WorkingWithPatches page for instructions on creating a patch for submission to Flyspray.
Title: Re: Metronome on sansa clip
Post by: Artursk on July 12, 2010, 08:09:24 AM
Ok -im givinng up on that  :-[

i spent 2 hours trying understand it ,but it seems to be a bit too hard for me.

Title: Re: Metronome on sansa clip
Post by: Chronon on July 12, 2010, 01:27:41 PM
If you take things step by step it shouldn't be too bad.  Is there a particular step that confuses you?
Title: Re: Metronome on sansa clip
Post by: Artursk on July 16, 2010, 02:23:49 PM
My problem is -when I tipe ''make'' it says -premission denied,bad interpreter
Title: Re: Metronome on sansa clip
Post by: Chronon on July 16, 2010, 06:21:10 PM
Which build environment are you using?
Title: Re: Metronome on sansa clip
Post by: Artursk on July 17, 2010, 06:14:54 AM
cygwin -I tryed to reinstall it , but  installer still coudn't download some parts from rockbox mirror so I did download them manually and then install using cygwin setup



I just downloaded newest RB and the metronome seems to be fixed 
 (TY guys :) )
Title: Re: Metronome on sansa clip
Post by: Chronon on July 17, 2010, 01:16:00 PM
Rockbox is now set up to use a different cross compiler.  Did the configure script complain about arm-elf-eabi-gcc not being on your path?  If this is the source of your problem you can run the rockboxdev.sh script to build it.
Title: Re: Metronome on sansa clip
Post by: AlexP on July 24, 2010, 03:41:02 PM
Rockbox is now set up to use a different cross compiler.  Did the configure script complain about arm-elf-eabi-gcc not being on your path?  If this is the source of your problem you can run the rockboxdev.sh script to build it.

Which like most things on Cygwin will take many moons :)