Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: zorblood on October 05, 2008, 12:36:11 AM

Title: Auto-disappearing volume indicator
Post by: zorblood on October 05, 2008, 12:36:11 AM
Yes i know but im just offering the idea, and it would make it a hell of a lot easier to make. Im not complaining, just suggesting.
Also it would be cool to have auto-dissapear, which i have not found a way to do witht he current wps language.
Title: Auto-disappearing volume indicator
Post by: karashata on October 05, 2008, 01:30:14 AM
I can't think of very many places something like that would be useful, but everyone's entitled to their opinions...

Just curious...  What do you mean by "auto-disappear"?  I've been able to make my graphics for my WPS themes disappear or even flicker/flash/blink (whatever you wanna call it) just using the right WPS code...
Title: Auto-disappearing volume indicator
Post by: jswetzen on October 05, 2008, 01:21:30 PM
By "auto-dissapear", I think zorblood means an effect similar to that of the iPod OF, where the volume meter is only visible when you are changing the volume. I looked for this as well, when I tried to make an iPod OF theme, but there is no "volume is changing" tag.
Title: Auto-disappearing volume indicator
Post by: karashata on October 05, 2008, 05:31:47 PM
Ah, I understand then.  The H10 original firmware does something similar with its volume display.  If someone could implement something like that effectively enough to get it into SVN Rockbox I could use it in my H10Like themes to make them even more like the original firmware...
Title: Auto-disappearing volume indicator
Post by: JdGordon on October 06, 2008, 04:52:29 AM
By "auto-dissapear", I think zorblood means an effect similar to that of the iPod OF, where the volume meter is only visible when you are changing the volume. I looked for this as well, when I tried to make an iPod OF theme, but there is no "volume is changing" tag.

have a look at FS#9460 ... that in combination with viewports should let you make some interesting screens...
Title: Auto-disappearing volume indicator
Post by: karashata on October 06, 2008, 01:18:04 PM
Well now, this aught to be interesting...  I'll need to set up a build environment and test it out some, see what I can do...

Any chance of it ever making it into SVN?
Title: Auto-disappearing volume indicator
Post by: JdGordon on October 06, 2008, 08:25:26 PM
probably, eventually...
Title: Auto-disappearing volume indicator
Post by: karashata on October 07, 2008, 12:38:37 PM
Should be awesome when/if it does, in the mean time I'll give it a test and see how it works.

EDIT:  Tested the patch out, built a well-working WPS with it.  I like it!

Can't wait to see it reach SVN (if it does, here's hoping!).
Title: Auto-disappearing volume indicator
Post by: JdGordon on October 07, 2008, 08:38:07 PM
can you attach some screenshots to give others some idea of whats possible?
Title: Auto-disappearing volume indicator
Post by: karashata on October 07, 2008, 08:39:25 PM
Yeah, sure, just gimme a couple minutes to get some.

EDIT:  And here we go!

(http://i19.photobucket.com/albums/b157/Karashata/dump081007-204047.jpg)

This is my WPS without the volume display.

(http://i19.photobucket.com/albums/b157/Karashata/dump081007-204102.jpg)

And this is shown while changing it.

I discovered just how easy it is to exceed the image buffer...
Title: Auto-disappearing volume indicator
Post by: JdGordon on October 07, 2008, 09:01:30 PM
nice, and yes, we need to start thinking about allowing bigger image buffers.
Title: Auto-disappearing volume indicator
Post by: karashata on October 07, 2008, 09:12:18 PM
Well, I suppose that's something else to think about changing if/when that patch makes it into SVN, since no doubt it'll be pretty much needed...  At least, if anyone uses larger graphics like I did...
Title: Auto-disappearing volume indicator
Post by: zorblood on October 07, 2008, 11:15:30 PM
Nice, I think this patch could easily be implemented into an ipod nano 3g theme...
Title: Auto-disappearing volume indicator
Post by: JdGordon on October 09, 2008, 07:11:06 AM
this has just been commited.
Title: Auto-disappearing volume indicator
Post by: karashata on October 09, 2008, 11:39:11 AM
Sweet!

Time to go post some updated WPS themes...
Title: Auto-disappearing volume indicator
Post by: audio-i on October 09, 2008, 11:52:23 AM
Great indeed! Thanks
Title: Auto-disappearing volume indicator
Post by: karashata on October 09, 2008, 12:28:21 PM
Alright, my themes are posted!

If anyone needs some ideas of what can be done, they can either view the screen shots I posted earlier in this thread, or they can go here (http://www.rockbox.org/twiki/bin/view/Main/WpsIaudioX5#AlexVanderpol_karashata) (scroll way down till you see H10Like, that and the themes listed after it in my section use the %mv tag).

EDIT: Just one thought...  Testing it on target, I've found that the 1s delay you had originally set the patch up with worked perfectly, the shortened delay is a split-second too short.  The "pop-up" that I've worked into my themes using the new tag disappears just before the repeat kicks in with the shorter delay, whereas with the 1s delay this never happened.  Plus, I happen to like having the extra split second to verify the volume level is right where I want it...
Title: Auto-disappearing volume indicator
Post by: pizza4me on October 09, 2008, 02:57:50 PM
So without my knowing anything about programming, would this theme be fairly easy to change to a different type of player?

In my head, you would just need to replace some differences onto a theme made for the different player...
but, I guess since they're encoded differently, you would probably have to basically recompile into a different language or format or something...
Title: Auto-disappearing volume indicator
Post by: saratoga on October 09, 2008, 03:11:25 PM
So without my knowing anything about programming, would this theme be fairly easy to change to a different type of player?

In my head, you would just need to replace some differences onto a theme made for the different player...
but, I guess since they're encoded differently, you would probably have to basically recompile into a different language or format or something...

Read the WPS wiki pages.  Its not particularly difficult.
Title: Auto-disappearing volume indicator
Post by: ryran on October 09, 2008, 03:14:36 PM
Niice.
Title: Auto-disappearing volume indicator
Post by: karashata on October 09, 2008, 04:45:56 PM
So without my knowing anything about programming, would this theme be fairly easy to change to a different type of player?

In my head, you would just need to replace some differences onto a theme made for the different player...
but, I guess since they're encoded differently, you would probably have to basically recompile into a different language or format or something...
The only problem I can see (if you're referring specifically to any of my themes) would be the size of the graphics, since my DAP (iriver H10 20GB) has a smaller screen than most of the other targets and I don't really use anti-aliasing except on the backgrounds, and of course the WPS file would have to be adjusted accordingly (primarily by adjusting size and position the viewports) to properly position the graphics and text.

The main wiki page saratoga is referring to is here (http://www.rockbox.org/twiki/bin/view/Main/WebHome?topic=CustomWPS).
Title: Auto-disappearing volume indicator
Post by: JdGordon on October 09, 2008, 07:10:50 PM
EDIT: Just one thought...  Testing it on target, I've found that the 1s delay you had originally set the patch up with worked perfectly, the shortened delay is a split-second too short.  The "pop-up" that I've worked into my themes using the new tag disappears just before the repeat kicks in with the shorter delay, whereas with the 1s delay this never happened.  Plus, I happen to like having the extra split second to verify the volume level is right where I want it...

ok, ill change it back to 1s
Title: Auto-disappearing volume indicator
Post by: karashata on October 10, 2008, 12:41:33 PM
Thank ye kindly, sir.  'Tis much appreciated.
Title: Re: Auto-disappearing volume indicator
Post by: JdGordon on October 11, 2008, 08:24:00 AM
just an update, you can now specify a timeout between the mv and the <> bit...
%?mv1.2<yes|no> will stay true for 1.2s after being released.... if none is set then defaults to 1s
Title: Re: Auto-disappearing volume indicator
Post by: karashata on October 11, 2008, 12:52:56 PM
Noted, and thanks for leaving the default as 1s without a specified value.