View Single Post
  #176 (permalink)  
Old 20th Aug 2009, 2:17 pm
flasher86 flasher86 is offline
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

You re making mistake with this function.
At first, FileOpen supports handle data type (you can use char too coz its the same), not as array (like this *file).
Secondable, the second parameter of the FileOpen suppose to be the path to the folder, just without the filename.
Use these lines instead:

PHP Code:
 HANDLE ArtFile;
        
ArtFile FileOpen("U:\\SOME_FOLDER\\RES_FILE.RES""U\\SOME_FOLDER","R");
        
DisplayPicFromFile(1,20,ArtFile0vinyl_XSIZE,vinyl_YSIZENULLNormal220);//actual album art //
        
FileClose(ArtFile); 
if that won't work, try to predefine parameters of the FileOpen like this:

char Filepath[12];
char Dirpath[12];

Filepath[0] = 'U';
Filepath[1] = ':'
Filepath[2] = '\'
... and so on so on.
Filepath[9?] = '\0' - remember to set the last array with this value, it defines ending of the string.

and then call FileOpen(Filepath, Dirpath, "R");

I would test it out but I cant compile working firmware for my player. I have Rockchip 2606A 320x240 and the screen is not supported so far

Last edited by flasher86; 20th Aug 2009 at 2:22 pm.
Reply With Quote