First of all, try to display res file as album art. It is a format which doesn't have to be converted before displaying so it is the best solution for testing.
To do this, use this:
Code:
AlbumArt = FileOpen(filepath, "R");
DisplayPicFromFile(position x, position y, AlbumArt, 0, width, height, Normal, 220);
FileClose(AlbumArt);
prepare bitmap by using tool ImageConvert (from FWTOOLS) so you will get raw 16bit data of the image.
If you manage to display it, you may try to use other filetypes with convertion. But this is something you have to do at first.
BTW. I am working on improving game platform, and today I managed to increase the Sample Rate of the Audio resource (default is 11025hz which is awful).
To make it 22050hz use the following code:
at the beginning of the source code file:
Code:
#define write_mem(address, value) (*((unsigned int volatile*)(address)) = (value))
#define P_ADD_CCR (0x0006)
#define DW_APB_I2C_BASE 0x1e800
#define IC_DATA_CMD ((DW_APB_I2C_BASE + 0x10)/2)
and this code after the standard Music Platform Function:
Code:
write_mem(IC_DATA_CMD,P_ADD_CCR);
write_mem(IC_DATA_CMD,0x0033);
This will allow to use even 44100hz audiofiles, which is huge improvement to the standard of the game platform.