Search found 18 matches
- Tue Aug 14, 2007 4:47 pm
- Forum: PSP Development
- Topic: Can't use HOME button to quit when using sceDisplayDisable
- Replies: 8
- Views: 2558
Re: Can't use HOME button to quit when using sceDisplayDisab
Hi! :) To solve your problem declare a static variable static int runningFlag = 1; Then change the exit_callback and SetupCallbacks like this: /* Exit callback */ int exit_callback(int arg1, int arg2, void *common) { runningFlag = 0; sceKernelExitGame(); ret...
- Tue Jul 31, 2007 4:12 pm
- Forum: PSP Development
- Topic: How to make psp display transparent?
- Replies: 3
- Views: 2221
- Tue Jul 31, 2007 12:47 pm
- Forum: PSP Development
- Topic: How to display a PNG image with libpng
- Replies: 2
- Views: 1521
- Tue Jul 31, 2007 12:36 pm
- Forum: PSP Development
- Topic: How to make psp display transparent?
- Replies: 3
- Views: 2221
How to make psp display transparent?
my display mode is 8888, So a pixel's size in this mode is four bytes, the highest order byte is alpha byte, and I try to set this byte to zero to make current display transparent , but it doesn't work ,why? (I wrote Vram 0x44000000 directly)
- Tue Jul 31, 2007 1:25 am
- Forum: PSP Development
- Topic: How to display a PNG image with libpng
- Replies: 2
- Views: 1521
How to display a PNG image with libpng
hi all my goal is to display the opaque part of a PNG image, and skip the transparent part of it(like acdsee ) I use libpng, use Double Frame Buffer and set display mode to PSP_DISPLAY_PIXEL_FORMAT_8888 the follow is my code fragment: for (y = 0; y < info_ptr->height; y ++) { png_byte *prow = prowta...
- Thu Jul 26, 2007 3:04 pm
- Forum: PSP Development
- Topic: Can't use HOME button to quit when using sceDisplayDisable
- Replies: 8
- Views: 2558
Well I can't be specific sorry, but you're no the only one. MapThis! GPS application has the same issue, not sure if for the same reason, one of my own released programs Time Baby. I don't think it's to do with the X button being ignored, but more that the exit callback doesn't work, or scekernalex...
- Thu Jul 26, 2007 2:48 pm
- Forum: PSP Development
- Topic: Display JPG tutorial?
- Replies: 5
- Views: 3256
- Thu Jul 26, 2007 1:15 pm
- Forum: PSP Development
- Topic: Can't use HOME button to quit when using sceDisplayDisable
- Replies: 8
- Views: 2558
I think I have encountered this also, but didn't really know the cause, you might have narrowed it down because I also use those functions. Have you tried taking control of the HOME button and exiting the app in the program if the HOME button is pressed? Exit callback isn't the only way to quit a p...
- Thu Jul 26, 2007 12:51 pm
- Forum: PSP Development
- Topic: Can't use HOME button to quit when using sceDisplayDisable
- Replies: 8
- Views: 2558
- Thu Jul 26, 2007 12:40 pm
- Forum: PSP Development
- Topic: Can't use HOME button to quit when using sceDisplayDisable
- Replies: 8
- Views: 2558
Can't use HOME button to quit when using sceDisplayDisable
hi,all I have a strange question, if I want call sceDisplay**able function, i must set my app run on kernel mode , 0x1000, PSP_MAIN_THREAD_ATTR(0), these are must, if I don't do these, then app will crush when it begin to run. (I don't know why, I copy from Mr.sakya's sample code) but if I did this,...
- Wed Jul 25, 2007 4:04 pm
- Forum: PSP Development
- Topic: problem with mikmodlib <volume is too low>
- Replies: 4
- Views: 1954
- Wed Jul 25, 2007 11:29 am
- Forum: PSP Development
- Topic: problem with mikmodlib <volume is too low>
- Replies: 4
- Views: 1954
Is your sample normalised? Jim yes, I tried many samples, their volume is all small than the volume played with psp. I copy the .wav file in two dir, one is my homebrew homedir, and use wavloader(a wrapper of mikmodlib) play it, the other dir is psp's MUSIC folder(the psp music player's default dir...
- Tue Jul 24, 2007 1:35 pm
- Forum: PSP Development
- Topic: problem with mikmodlib <volume is too low>
- Replies: 4
- Views: 1954
problem with mikmodlib <volume is too low>
I've just use Voice_SetVolume to set volume to 255 (max), but when I play the sound, it's volume was still too small than use psp's inner player, why?
- Tue Jul 24, 2007 12:56 pm
- Forum: PSP Development
- Topic: A stupid question of psp audio function, thanks
- Replies: 0
- Views: 896
A stupid question of psp audio function, thanks
hi, I am reading mp3 decode program, it's first function is <MP3_Init(int channel)> and I saw the only argument 'channel' is passed to function <pspAudioSetChannelCallback>, could you please tell me what the 'channel' is? how should I understand it's meaning, does it means the program use No.0 (firs...
- Fri Apr 20, 2007 7:07 pm
- Forum: PSP Development
- Topic: Question of function return value
- Replies: 2
- Views: 1124
- Fri Apr 20, 2007 5:53 pm
- Forum: PSP Development
- Topic: Question of function return value
- Replies: 2
- Views: 1124
Question of function return value
Hi, I am reading ModuleTurorialv1.pdf, and testing it's code on my psp develop platform. I am a unix C programmer, and I have never developed on portable device such as PDA or PSP, Now I am confused with a function's C code in this PDF document. -------------------- code fragement start here -------...
- Fri Apr 20, 2007 11:52 am
- Forum: PSP Development
- Topic: where can I get the make file for PSP module?
- Replies: 3
- Views: 1611
- Thu Apr 19, 2007 7:38 pm
- Forum: PSP Development
- Topic: where can I get the make file for PSP module?
- Replies: 3
- Views: 1611
where can I get the make file for PSP module?
I am a newbe of psp homebrew, I am reading ModuleTutorialv1.pdf, I want to test the module code in the pdf, but I have no make file for it, the make file in pspsdk's sample directry seems not available for module, could you please tell me where can I get the make file for modules? thank you for your...