Support and General Use > Theming and Appearance Customization

Buffer size too small (H10)

(1/2) > >>

oori002:
Hi rockboxers :)

I just wanted to test my new WPS (including album art). the album art works just fine but the when I try to load more images the simulator write that the given buffer is too small =\

the size of all the images that sould be loaded into the buffer for the WPS is about 168 KB (its not that much).

is there something I can do to fix this problem? (already tried to swich the images to 16 bit but its not shows properly)

P.S
I searched in the forum and didnt found anything about that problam.

Thx
Ori

XavierGr:
You must change the buffer size (iirc) responsible for the WPS in the source code.
Then you can compile and run the build on your unit.

I don't remember though where exactly is the buffer size define...
(maybe apps/gui/gwps.c , apps/gui/gwps.h)

Genre9mp3:
apps/gui/gwps.h

line 68-69


--- Code: ---#define IMG_BUFSIZE ((LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) \
                   + (2*LCD_HEIGHT*LCD_WIDTH/8))
--- End code ---

oori002:
umm.. I cant do that :(

I gess that i have to just leave the theme on the side :(

Thx anyway

B.T.W

Why not changing the source code so the buffer will be bigger on every normal build? This can disrupt something?

soap:
Increasing the WPS buffer decreases the audio playback buffer, leading to more frequent hard drive spins, and thus decreased battery life.

Navigation

[0] Message Index

[#] Next page

Go to full version