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
| | |-+  default fm interface
« previous next »
  • Print
Pages: [1]

Author Topic: default fm interface  (Read 1885 times)

TOTAL

  • Guest
default fm interface
« on: March 03, 2015, 05:44:16 PM »
Hi

Is there a copy of rb's default fm player interface?

I would like to use the wavelength bar in gui of my own.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: default fm interface
« Reply #1 on: March 03, 2015, 10:18:21 PM »
Unless you have a 128x128 or 160x128 device (these targets actually do have a cabbiev2-*.fms file which you can find here), it probably doesn't work the way you're thinking it does.

The FM interface is hardcoded, and I would need to do a bit of digging to find it instead of running from memory as I am presently.

However, if we're on the same "wavelength" (see what I did there?), and I take an educated guess at what it is you're talking about (well, there's only two possibilities really, isn't there?), I believe you'll find that the built in progress bar (%pb) behaves exactly as you would expect it to here.

If I assume you're talking about a scan bar, you could do a very simply graphical implementation with four simple theme tags:
Code: [Select]
%pb
%al%ta%ac%tcMHz%ar%tb

OK, I lied...I forgot about alignment tags. Seven, seven simple theme tags.

This will produce a graphical bar, with mix and max frequencies immediately underneath it to the left and right respectively, and the current frequency centred between the two.

And if I assume you're talking about the peak meters, you can use:
Code: [Select]
%pm

Which will provide a built in stereo peak meter.


[Saint]
« Last Edit: March 03, 2015, 10:20:22 PM by [Saint] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

TOTAL

  • Guest
Re: default fm interface
« Reply #2 on: March 04, 2015, 02:07:06 PM »
Hi

Thank you for your answer. I use sansa clip+.

I compiled my own audiobook theme for mp3 player I called EXPANDER years ago, so I am familiar with the concept, however, I have forgotten the basics.

Tried pasting your line into x8steak but it did not work.

I guess I will need to revise.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: default fm interface
« Reply #3 on: March 04, 2015, 04:03:17 PM »
Can we elaborate on "it did not work" please?

Did the entire theme fail to load, indicating a syntactical error and a failure to parse? Did the theme load, but these elements fail to show? It might not seem to be, but this is all important information that can help myself or others to get a grasp on what's going on.

If you could provide a pastebin link of the .fms, or preferably, a download link to the full theme in its current non-functional state, I could see what I can do for you. I don't do much for the community besides moderation and support in these forums and on our Freenode IRC channel (where, generally speaking, its best to reach me for live support - though I haven't been particularly active there lately due to time constraints coupled with jostling my home network architecture around with newly acquired hardware), its nice to still be able to give back every once in a while.

I'm happy to assist you.


[Saint]
« Last Edit: March 04, 2015, 04:06:04 PM by [Saint] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

TOTAL

  • Guest
Re: default fm interface
« Reply #4 on: March 05, 2015, 06:18:59 PM »
It was simply replaced by the hardcoded one. All formatting imperfections I could deal with but when the interface simply does not show, it takes deeper knowledge of the code.

Here is the code of x8 steak radio that I find nearly perfect. It has time, battery, station name exposed. If it also featured the wavelength scale indicator in its top row, it would have it all (less a recording indicator instead of mono/stereo ;)

Code: [Select]
# Works !
# disable status bar
%wd

# Load fonts
%Fl(3,14-Adobe-Helvetica-Bold.fnt,100)
%Fl(4,16-Adobe-Helvetica-Bold.fnt,100)
# Load bitmaps
%xl(P,playmode.bmp,0,0,9)
%xl(B,battery.bmp,0,0,9)
%xl(C,plug.bmp,0,0,1)

# Sleeptimer
%V(0,0,-,16,3)
%ac%?bs<Sleep.. %bs|>


# Battery bmp & level(%)
%V(0,16,17,8,0)
%?bp<%xd(Bb)|%?bl<%xd(Bc)|%xd(Bd)|%xd(Be)|%xd(Bf)|%xd(Bg)|%xd(Bh)|%xd(Bi)>>
%V(17,16,20,8,0)
%al%bl%%

# FM Status bmp, vol level & time
%V(40,16,8,8,0)
%?mp<%xd(Pa)|%xd(Pb)|%xd(Pc)|%xd(Pd)|%xd(Pe)|%xd(Pf)|%xd(Pg)|%xd(Ph)|%xd(Pi)>
%V(50,16,-,8,0)
%al%pvdB%ar%cH:%cM

# Preset name
%V(0,26,-,16,4)
%s%ac%Tn

# 91.7Mhz | Mono/Stereo
%V(0,44,-,8,1)
%al%tfMhz%ar%?ts<Stereo|Mono>

# Scan mode/Stat°3/6 |20dBu
%V(0,53,-,11,1)
%al%?tm<Scan mode|Stat°%?Ti<%Ti/%Tc|>>%ar%trdBu

http://www.datafilehost.com/d/b683a582
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  default fm interface
 

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

Page created in 0.047 seconds with 15 queries.