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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  New tag to turn true on track change
« previous next »
  • Print
Pages: [1]

Author Topic: New tag to turn true on track change  (Read 2267 times)

Offline Biont

  • Member
  • *
  • Posts: 49
New tag to turn true on track change
« on: March 17, 2010, 02:44:24 PM »
In the past few hours, I've been trying to get a song info popup to work. It should work like the small popup windows known from media player programs like foobar2000: For some seconds after a new songs starts playing, a small popup comes up with all relevant song info.

I want to make the album art as big as possible (240*240), so there's no room to have the song info on screen permanently. That's why I'd like to realize that popup window on top of the album art.

Now the only tag that seemed to be suitable is the %px tag which returns the percentage played in the current song.
Sadly, it turned out that the tag does not really want to be used for this task.
Not only do I need a huuuge conditional consisting of 100 different states, I also need this conditional for every bit of song info I want to display. I don't know why, but it seems constant updating is needed in order to keep the AA from drawing over my popup viewport.

You can imagine this doesn't look very elegant. And it doesn't even work properly :)

So I think something like the %mv would come in handy here (%mv turns true on volume change and can be used with a timeout).

If the song's at 00:00 the new tag would turn true. After the timer runs out, it goes false again.

Example:

%?pC1.5<:D| :'(>

At track change, the tag is happy for 1.5 seconds and then gets sad again.

Maybe there are better ways to do it, and %pC is nothing more than an example name, but I think such a tag would be nice to have.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: New tag to turn true on track change
« Reply #1 on: March 18, 2010, 02:40:53 AM »
should be pretty simple to add... and anyone that wants to do it, allow the timeout to be negative which would mean <time> before track changes :)

actually, screw it, I'm bored...
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: New tag to turn true on track change
« Reply #2 on: March 18, 2010, 03:15:05 AM »
%pS %pE.... go nuts :)
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: New tag to turn true on track change
« Reply #3 on: March 18, 2010, 05:56:13 AM »
Wow! Thank you very much :D


EDIT: It looks like AA needs to be displayed before &pS turns true. Otherwise it won't display until the timer runs out.

At least I haven't been able to find a configuration that works. (->display AA and popup AND getting rid of the popup again [->drawing AA over it])
« Last Edit: March 18, 2010, 01:35:14 PM by Biont »
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: New tag to turn true on track change
« Reply #4 on: March 19, 2010, 07:39:58 PM »
 Is the popup in its own viewport?
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline Biont

  • Member
  • *
  • Posts: 49
Re: New tag to turn true on track change
« Reply #5 on: March 19, 2010, 07:48:18 PM »
Yep. It either doesn't display AA until the timer runs out r the opup doesn't disappear after the tier ran out ....depending on how I set the viewports up.


The same thing works great with the %mv tag and I think it's due to the AA already displayed.

I can post my code when I come back to my place end of weekend. Maybe theres a way to get it to work with wps code.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  New tag to turn true on track change
 

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

Page created in 0.074 seconds with 14 queries.