Rockbox

Tasklist

FS#3024 - radio wps

Attached to Project: Rockbox
Opened by Jonathan Gordon (jdgordon) - Tuesday, 14 February 2006, 09:56 GMT
Last edited by Jonathan Gordon (jdgordon) - Sunday, 20 May 2007, 08:39 GMT
Task Type Patches
Category User Interface
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

ok, this is XavierGr's preset patch merged with my hack
to get the wps screen working with the radio..
(also added a tag to show volume in % for those that
want it...)

just a quik thing about the wps... its done very hacky
because the wps loads its info from an id3 tag, so ive
put the radio info into a fake id3.. which means that
some tags might not be as expected if your on the radio
screen...
so...

first thing is the conditional to see if the radio is
being used or not...
%?R<[stuff for regular screen]|[stuff for the radio
screen]>

ok, now the radio tags..
%Rf - frequency in MHZ
%Rl - (thats a lowercase L) - minimum frequency.. will
be changeable maybe soon
%RL - max frequency
%Rm - mode.. shows Mode:preset or Mode:Scan
%Rp - shows "p" if you are on a preset (use as a
conditional for the next 2 tags)
%Rpn - current preset name
%Rpi - current preset number
%Rps - shows "s" if its stereo (good for a conditional)
%Rpt - shows "t" if its tuned to a station ok

and thats it...
now. to show the volume as a % use the tag %pv%

i cant comment on the preset part of the patch.. but it
merged ok and didnt spit out any warnings.. and seems
to work...
This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Sunday, 20 May 2007, 08:39 GMT
Reason for closing:  Out of Date
Comment by Jonathan Gordon (jdgordon) - Tuesday, 14 February 2006, 11:17 GMT

ok, i have added 2 more files to the patch...
radio_wps.patch is just my additions..
radio_radio_presets AFTER WPS.diff is XavierGr's patch
diffed against my wps changes (so it wont work unless u do
the radio.wps.patch first)
the origonal radio.patch is there which has both done
together

Comment by Jonathan Gordon (jdgordon) - Tuesday, 14 February 2006, 11:18 GMT

here is the other patch...
Comment by Jonathan Gordon (jdgordon) - Tuesday, 14 February 2006, 11:27 GMT

grr... tabs are now 4 spaces...
Comment by Jonathan Gordon (jdgordon) - Wednesday, 15 February 2006, 12:43 GMT

ok, try again... this is without the presets patch.. it all
went to sh!t :'(

Loading...