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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  radio screen skin token suggestions!
« previous next »
  • Print
Pages: [1]

Author Topic: radio screen skin token suggestions!  (Read 2700 times)

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
radio screen skin token suggestions!
« on: September 24, 2009, 01:01:35 AM »
well, I was going to keep this quiet untill I actually had something working, but meh.... if this happens it would be sweet... If i take too long someone else will take over...

SO..... radio screen skinablity discussion time.... believe it or not.. I tinhk the biggest difficulty here is deciding on the new tokens to add to the skin language. I would like to call it [r]fms (for [remote] fm screen/skin) and would have liked to use f as the first letter for tokens but apparently they are being used already...

So how should we do this? overloading tokens might be a possibility but then we need to decide if we want to make sure they are reasonable... e.g overload ff to be frequency in both the wps and fms, or if ff can be something completly different between the two. For now at least I dont like this idea because it means more mess behind the scenes because the displayer/parser needs to know which screen its in... and then there is the mess with the statusbar needing to work with both!!

The better idea is to come up with a new set of tokens, and I need suggestions, both what to add (what info do we want avilable) but also what their token string is going to be...
f,F and r are all being used already and I'd rather not go to 3 or 4 letter tokens (although I'm kidding myself thinking we wont have to do that eventually anyway)...

So.... here is the quick list of the bare minimum I want... reply with more and what token you'd like to use for them

--------------------------
frequency
tuned? (yes/no)
mono/stereo
scan mode (preset/scan/?)
preset name (if its coming from a preset)
preset<N> name
preset<N> frequency (both of these N are +- from the current one... so -1 would be the previous (or the last if this one is the first)
preset count(?)

recording tokens:
status
time
filename
prerec time(?)

few more: ability to use translated strings
e.g "Station", "Mode"


not sure what else is needed... (Also remember that in the long term we'd like (*MAYBE*) for the rec screen to use these and other tags also...



OK, the displayer will know which screen it is in so maybe sharing *some* tags might be ok... anyway, reply with your thoughts

edit: really crappy screenshot of the first ever customised fm screen!!!
« Last Edit: September 24, 2009, 02:02:13 AM by JdGordon »
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: radio screen skin token suggestions!
« Reply #1 on: September 24, 2009, 03:25:42 AM »
A couple more (albeit less important):

I guess all the things like vol, play/pause etc can be reused directly.

Album art - but this time showing the station logo (taken from the preset name?)

various RDS tags (not currently implemented, but for the future) - I only mention this now to keep in mind that more tags will be required if/when this is implemented.

Good work!


Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: radio screen skin token suggestions!
« Reply #2 on: September 24, 2009, 01:08:10 PM »
the tags which arnt obviously linked to the current playing track will obviously be shared, AA is something I want to add but it could be tricky...

pixelma suggested we use the %t prefix even though it and %T are used already (for subline and umm...)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: radio screen skin token suggestions!
« Reply #3 on: September 24, 2009, 01:39:47 PM »
Maybe not what you had in mind when you asked the question, but we will eventually need touch-enabled FF/RW buttons to choose presets (and/or tune depending on the current mode) on touchscreen targets.

Maybe even a touch-enabled progress bar for tuning? Sounds odd but it works quite effectively in the D2 OF.
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: radio screen skin token suggestions!
« Reply #4 on: September 24, 2009, 08:30:54 PM »
Quote from: shotofadds on September 24, 2009, 01:39:47 PM
Maybe not what you had in mind when you asked the question, but we will eventually need touch-enabled FF/RW buttons to choose presets (and/or tune depending on the current mode) on touchscreen targets.

Maybe even a touch-enabled progress bar for tuning? Sounds odd but it works quite effectively in the D2 OF.

Overloading the progressbar (%pb literally) seems useful for showing the current frequency in the within the spectrum.

Most of the fm tags can be done with the %St tag (channel config, scan mode, other radio related settings).

I'd rather have the preset tags act like track (and next track) in the wps. For consistency, since the preset list is basically a radio-playlist.

Letting the displayer now the current screen is actually quite easy (see a patch on the custom statusbar task), by exposing next_screen from root_menu.c. Except that recording-from-fm-screen doesn't change that variable so that it needs some hook.
Logged
 

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: radio screen skin token suggestions!
« Reply #5 on: December 13, 2009, 08:46:00 PM »
BUMP!
I'm well on the way to implementing this... need help mapping tokens to letter for the skin...

WPS_TOKEN_HAVE_TUNER,
#if CONFIG_TUNER
    WPS_TOKEN_TUNER_TUNED,
    WPS_TOKEN_TUNER_SCANMODE,
    WPS_TOKEN_TUNER_STEREO,
    WPS_TOKEN_TUNER_MINFREQ, /* changes based on "region" */
    WPS_TOKEN_TUNER_MAXFREQ, /* changes based on "region" */
    WPS_TOKEN_TUNER_CURFREQ,
    WPS_TOKEN_PRESET_NAME,
    WPS_TOKEN_PRESET_FREQ,
    WPS_TOKEN_PRESET_COUNT,
    /* RDS tokens */
    WPS_TOKEN_HAVE_RDS,
#ifdef HAVE_RDS_CAP
    WPS_TOKEN_RDS_NAME,
    WPS_TOKEN_RDS_TEXT,

are the tokens which I've done already... please add suggestions for missed tokens and what letters to use for them
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: radio screen skin token suggestions!
« Reply #6 on: December 14, 2009, 02:52:10 AM »
http://www.rockbox.org/tracker/task/10853 is the patch...
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Biont

  • Member
  • *
  • Posts: 49
Re: radio screen skin token suggestions!
« Reply #7 on: December 15, 2009, 03:34:51 AM »
How about the screen buffer? Will you increase so that existing themes can easily add the radio screen or will it use the same fixed-size buffer?

EDIT: I know my question is off-topic, but A new thread just for a simple question seemed inappropriate
« Last Edit: December 15, 2009, 04:16:36 AM by Biont »
Logged

Offline seani

  • Member
  • *
  • Posts: 122
    • they call me MR sean
Re: radio screen skin token suggestions!
« Reply #8 on: December 15, 2009, 07:04:16 AM »
Quote from: JdGordon on December 13, 2009, 08:46:00 PM
BUMP!
I'm well on the way to implementing this... need help mapping tokens to letter for the skin...

WPS_TOKEN_HAVE_TUNER,
#if CONFIG_TUNER
    WPS_TOKEN_TUNER_TUNED,
    WPS_TOKEN_TUNER_SCANMODE,
    WPS_TOKEN_TUNER_STEREO,
    WPS_TOKEN_TUNER_MINFREQ, /* changes based on "region" */
    WPS_TOKEN_TUNER_MAXFREQ, /* changes based on "region" */
    WPS_TOKEN_TUNER_CURFREQ,
    WPS_TOKEN_PRESET_NAME,
    WPS_TOKEN_PRESET_FREQ,
    WPS_TOKEN_PRESET_COUNT,
    /* RDS tokens */
    WPS_TOKEN_HAVE_RDS,
#ifdef HAVE_RDS_CAP
    WPS_TOKEN_RDS_NAME,
    WPS_TOKEN_RDS_TEXT,

are the tokens which I've done already... please add suggestions for missed tokens and what letters to use for them


I don't know about letters, but

Region Id

Region Name

Signal Strength (if available)

Name of the Presets File in operation if one is currently used. Alternatively the first line of the file as a description if that's possible with a bit of rework elsewhere
Logged
Sansa C240, Sansa E280, Clip

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: radio screen skin token suggestions!
« Reply #9 on: December 15, 2009, 12:37:52 PM »
Blont: it will have to be increased

seani: I'm not sure how usedful the region id and name are, do any targets support signal strength (can be added though if they do), and presets filename is meh..
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline seani

  • Member
  • *
  • Posts: 122
    • they call me MR sean
Re: radio screen skin token suggestions!
« Reply #10 on: December 15, 2009, 01:17:49 PM »
The region wouldn't be much use, other than to confirm you're set for the wrong reason if you have trouble tuning in.

The signal strength seems of limited use, except that if you want to tune to the strongest signal for a particular station, it eliminates the "the broadcast itself is crap" confusion.

The preset name I would find useful: I travel up to my family in the North East and to Mrs Seani's family in the south and tune to the same set of national stations (the BBC's 1 to 4, Classic FM) and a smattering of local stations.

The preset name gives me an "My tuners set for *this* location" check.


I don't spend much time looking at any of them, but you did ask, so...
Logged
Sansa C240, Sansa E280, Clip

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: radio screen skin token suggestions!
« Reply #11 on: December 16, 2009, 09:42:33 AM »
Quote from: seani on December 15, 2009, 01:17:49 PM
The signal strength seems of limited use...
And not possible on some targets - I tried doing it on the H300 a few years ago and you have to keep writing to one of the registers to get it to update the RSSI value but the updating causes noise - it might be possible on some other platforms but you should check before investing the effort.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  radio screen skin token suggestions!
 

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

Page created in 0.275 seconds with 14 queries.