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
| |-+  Recording
| | |-+  Recording Enhancements Pack
« previous next »
  • Print
Pages: 1 ... 15 16 [17] 18 19 ... 63

Author Topic: Recording Enhancements Pack  (Read 364655 times)

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #240 on: April 19, 2006, 05:48:03 PM »
OK Paul, here's a patch that will only allow changeable recording fonts to current cvs version.

This may not apply cleanly to vinylivo's version though, or it may and could still not work! If this is the case try the following:

Code: [Select]
You must make sure that in recording.c any w's and h's need to be changed to w[i] and h[i]
if they are within a FOR_NB_SCREENS(i) loop. If any of these are outside a loop do the same but change the i to a 0.
and change anything like setfont(SYSFIXED) to setfont(font[i]) if it's in one of the loops.
If a setfont is outside a loop leave it alone!

Hopefully that should make sure all runs smoothly.....  :D
Good luck... ;)

[attachment deleted by admin, too old]
« Last Edit: April 19, 2006, 05:50:05 PM by Mmmm »
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline paulheu

  • Member
  • *
  • Posts: 213
Re: Recording Enhancements Pack
« Reply #241 on: April 20, 2006, 07:45:09 PM »
Indeed, the fontspatch does not work with the latest agc_histogram patch, the battery/diskspace/balance graphics disapear and do not return..

Oh well.. big(ger) fonts are nice but I can do without em (for now)..
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #242 on: April 21, 2006, 07:33:10 AM »
Does the batt indicator go even when you are using the default font? It is supposed to disappear when a large font is used, as otherwise you just get a nasty mess (it overlaps).

On vinylivo's original the max font size was 12 which is pretty small and useless so I changed it slightly so that it overwrote the batt/disk/balance info. This way you can have larger fonts like chicago12 without any problems (just a small compromise).

Or is it that they never turn up at all?
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline paulheu

  • Member
  • *
  • Posts: 213
Re: Recording Enhancements Pack
« Reply #243 on: April 21, 2006, 11:09:07 AM »
It never turns up, if I remove the screenclear around line 1550 it stays, but seems to not be updated with the fontpatch. I use a small enough font with plenty of space left..
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #244 on: April 21, 2006, 12:11:00 PM »
Paul: Find this bit in recording.c
Code: [Select]
            /************** AGC Test Info only *************
            lcd_setfont(FONT_SYSFIXED);
            snprintf(buf, 32, "D:%d U:%d",
                     (agc_droptime+2)/5, (agc_risetime+2)/5);
            lcd_putsxy(1, LCD_HEIGHT - 8, buf);
            snprintf(buf, 32, "B:%d",
                     (agc_baltime+2)/5);
            lcd_putsxy(LCD_WIDTH/2 + 3, LCD_HEIGHT - 8, buf);
            ***********************************************/

            if (hist_bal_y > (8 + 8 * h[SCREEN_MAIN]))
            {
                lcd_setfont(FONT_SYSFIXED);
                if (charger_inserted())
                    lcd_mono_bitmap(bitmap_icons_7x8[Icon_Plug],
                                    2 + 19*(battery_level() > 48),

I reckon it must have something to do with this bit of code...
Especially that           
Code: [Select]
  if (hist_bal_y > (8 + 8 * h[SCREEN_MAIN]))
bit.
This is the condition for the drawing of the bat/disk/bal info.

hist_bal_y is the start point for drawing the graphs
the first 8 is the size of the status bar and the second is the number of lines of text that are displayed on the screen h[0] or h[SCREEN_MAIN] (same thing) is the height of the font on the main screen.

So the batt/disk/bal info is only displayed if the text doesn't run into it...

Is yours the same as mine?
If it is have a go at changing that second 8 to a 7
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline paulheu

  • Member
  • *
  • Posts: 213
Re: Recording Enhancements Pack
« Reply #245 on: April 21, 2006, 12:52:38 PM »
I found that one and it appear to work... Had it set to h initially, but of course since this is always the main LCD h[0] is what it should be..

I'll do a bit of testing tonight and let you know what I come up with..
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #246 on: April 22, 2006, 06:56:17 AM »
So it works now?

I was also thinking that seeing as you have a much bigger screen than I do, you might want to change this line
Code: [Select]
    FOR_NB_SCREENS(i)
    {
        screens[i].setfont(FONT_UI);
        screens[i].getstringsize("M", &w[i], &h[i]);
        if (i == SCREEN_MAIN) {
*****if (h[i] < ((LCD_HEIGHT - 16) / 8))]***********
                font[i] = FONT_UI;
            else
                font[i] = FONT_SYSFIXED;
        }
        else if (h[i] <= ((screens[i].height - 8) / 7))
(the ****** line)
Change that 16 to a 40, then the font will never be allowed to overwrite the batt/bal/disk info.
I only changed it because on the small H1xx screen this meant you couldn't get a decent sized font in before it reset to the system font...I don't think that this would be an issue for the H3xx.  ;)
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline paulheu

  • Member
  • *
  • Posts: 213
Re: Recording Enhancements Pack
« Reply #247 on: April 22, 2006, 09:19:11 AM »
in the fontsonly patch it is actually set to 40
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #248 on: April 22, 2006, 09:52:57 AM »
Quote from: paulheu on April 22, 2006, 09:19:11 AM
in the fontsonly patch it is actually set to 40
Ha ha...really?? well...that saves a bit of time then eh  :D

Quote from: paulheu
I found that one and it appear to work... Had it set to h initially, but of course since this is always the main LCD h[0] is what it should be..

I'll do a bit of testing tonight and let you know what I come up with..

You still haven't said whether it works now or not!  ::)
Didn't you set all h's to h[0] or h{i} like I said? :)
« Last Edit: April 22, 2006, 09:58:26 AM by Mmmm »
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline paulheu

  • Member
  • *
  • Posts: 213
Re: Recording Enhancements Pack
« Reply #249 on: April 22, 2006, 02:19:08 PM »
I actually commented the 'int w,h;' lines out to find any missed ones, but get no errors. I did spot some leftover &h and &w var but they do not cause any warnings or errors..

I sortof expected them to, but it all works well sofar.. Should I turn all these &w and &h vars into &w[0] and &h[0] as well then ?
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #250 on: April 22, 2006, 06:40:01 PM »
That's weird...the fonts patch should get rid of the 'int w,h' line, how come yours didn't?...  ???

The leftover &w's and &h's are probably within a #ifdef REC_F3 type precompiler thingy which means that when you compile for the iriver the compiler doesn't even look at this bit of code and so no errors... If you tried to compile for archos or something you would have to change to &w[0] etc or there would be errors galore. One of many reasons why the patch is really a load of crap!  :D

So there is no need to change anything if there are no compiler errors. Glad it's all working now.... ;)
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline Davide-NYC

  • Member
  • *
  • Posts: 429
Re: Recording Enhancements Pack
« Reply #251 on: April 25, 2006, 11:30:43 AM »
Hey, are you guys are watching the optical recording progress going on right now?
It's still very alpha, but it seems to be working already.
Also, did you see my parts auction to benefit ROCKbox? (specifically the recording aspect on H1xx targets) I can't code, but I'm trying to do some good for this awesome project... :-P
Logged
Currently: iRiver H132-RTC-CFMod

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #252 on: April 26, 2006, 08:30:31 AM »
New patch/build in post#1

Paul: your fonts patch will be broken now, are you ok to fix it yourself?

Davide: I'm watching and waiting!  ;)
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline paulheu

  • Member
  • *
  • Posts: 213
Re: Recording Enhancements Pack
« Reply #253 on: April 27, 2006, 09:08:15 PM »
It appears you're still using a previous version of the AGC patch as I get no color on the H3x0 with your complete patch and I do when I apply Ivo's latest current AGC patch..
Logged

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 922
Re: Recording Enhancements Pack
« Reply #254 on: April 28, 2006, 07:30:07 AM »
Yeah you're right...I'm afraid that I've been struck by a bit of lazyitis!  :D Seeing as there is no colour on the h140 anyway I couldn't be bothered to update the patch to vinylivo's latest...  ::)

Have you managed to make a patch with the fonts in? if so I'll use it and update that.
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

  • Print
Pages: 1 ... 15 16 [17] 18 19 ... 63
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Recording
| | |-+  Recording Enhancements Pack
 

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

Page created in 0.084 seconds with 14 queries.