Code: Select all
void GrabaWAV(char *name,int size){
int sstg = sceIoOpen(name, PSP_O_WRONLY | PSP_O_CREAT , 0777);
sceIoWrite(sstg, "RIFF",4*sizeof(char));
sceIoWrite(sstg, size + 36,sizeof(int)); //This line has a problem
sceIoWrite(sstg, "WAVE",4*sizeof(char));
Anybody can help me? Thanks ;)
Edit: Somebody could explain why it can write chars without any problems, but can´t write an integer?