Rockbox Ports are now being developed for various digital audio players!
But (and this is how out-of-my-depth I am), I don't know how to get the size of a file.
Can one call linux system functions from within Rockbox (as I know that's one way to do it), or is that a silly question given the platforms it runs on? I don't even understand this much - does Rockbox sit on a kind of linux 'layer' when its installed on a DAP or is it a totally stand-alone?
Thanks - I'll give it a go (but don't hold your breath!). Testing will be the tricky bit - there's an emulator, yes? Will need to figure out how to get that working.
lib/fixedpoint/fixedpoint.h
Quote from: Frankenpod on March 29, 2015, 09:46:37 AMThanks - I'll give it a go (but don't hold your breath!). Testing will be the tricky bit - there's an emulator, yes? Will need to figure out how to get that working.HINT: You'll probably need some trig functions to do the drawing. Look in Code: [Select]lib/fixedpoint/fixedpoint.h for some fixed-point ones.
1/ Is there a rockbox API call to get the total size of the DAP's disk/flash storage?
2/ I'm struggling to understand the rockbox graphics functions - in particular, why is there an _array_ of screen objects, rather than just the one?
Which one do I use to draw graphics on?
Other issue is am not sure about type conversions - adding up disk usage in bytes leads to numbers too large for int or even long int. Not sure whether to use floats instead or just to round to kb or Mb.
Quote from: Frankenpod on March 31, 2015, 08:27:42 AMOther issue is am not sure about type conversions - adding up disk usage in bytes leads to numbers too large for int or even long int. Not sure whether to use floats instead or just to round to kb or Mb.You /could/ try using 64-bit integers (unsigned long long or uint64_t with <stdint.h>).
Page created in 0.1 seconds with 22 queries.