Search found 18 matches

by picobsd
Tue Aug 14, 2007 4:47 pm
Forum: PSP Development
Topic: Can't use HOME button to quit when using sceDisplayDisable
Replies: 8
Views: 2511

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...
by picobsd
Tue Jul 31, 2007 4:12 pm
Forum: PSP Development
Topic: How to make psp display transparent?
Replies: 3
Views: 2178

ufoz wrote:the alpha channel is ignored in the framebuffer. If you need transparency, use a texture and turn on blending.
oh, must I use sceGuxxxx ?
I know little about that, my program use pg, a primitive graphic interface wrote by me, it access Vram directly.
by picobsd
Tue Jul 31, 2007 12:47 pm
Forum: PSP Development
Topic: How to display a PNG image with libpng
Replies: 2
Views: 1500

I don't know why the alpha channel doesn't work when I put the color value which include rgba into Vram directly.
by picobsd
Tue Jul 31, 2007 12:36 pm
Forum: PSP Development
Topic: How to make psp display transparent?
Replies: 3
Views: 2178

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)
by picobsd
Tue Jul 31, 2007 1:25 am
Forum: PSP Development
Topic: How to display a PNG image with libpng
Replies: 2
Views: 1500

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...
by picobsd
Thu Jul 26, 2007 3:04 pm
Forum: PSP Development
Topic: Can't use HOME button to quit when using sceDisplayDisable
Replies: 8
Views: 2511

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...
by picobsd
Thu Jul 26, 2007 2:48 pm
Forum: PSP Development
Topic: Display JPG tutorial?
Replies: 5
Views: 3206

I have some sample code of using libjpeg to display jpeg file
by picobsd
Thu Jul 26, 2007 1:15 pm
Forum: PSP Development
Topic: Can't use HOME button to quit when using sceDisplayDisable
Replies: 8
Views: 2511

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...
by picobsd
Thu Jul 26, 2007 12:51 pm
Forum: PSP Development
Topic: Can't use HOME button to quit when using sceDisplayDisable
Replies: 8
Views: 2511

by the way, my firmware version is 3.03oeb
and I have noticed that Mr. sakya 's sample code ("sceDisplaySetBrightness and sceDisplayDisable sample") also have this problem, in his sample, he use Triangle button to quit.
by picobsd
Thu Jul 26, 2007 12:40 pm
Forum: PSP Development
Topic: Can't use HOME button to quit when using sceDisplayDisable
Replies: 8
Views: 2511

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,...
by picobsd
Wed Jul 25, 2007 4:04 pm
Forum: PSP Development
Topic: problem with mikmodlib <volume is too low>
Replies: 4
Views: 1908

Insert_witty_name wrote:Mikmod produces lower volume output for some reason, I've noticed it myself.
Is there other way to play wav files? use pspaudio lib?
by picobsd
Wed Jul 25, 2007 11:29 am
Forum: PSP Development
Topic: problem with mikmodlib <volume is too low>
Replies: 4
Views: 1908

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...
by picobsd
Tue Jul 24, 2007 1:35 pm
Forum: PSP Development
Topic: problem with mikmodlib <volume is too low>
Replies: 4
Views: 1908

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?
by picobsd
Tue Jul 24, 2007 12:56 pm
Forum: PSP Development
Topic: A stupid question of psp audio function, thanks
Replies: 0
Views: 885

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...
by picobsd
Fri Apr 20, 2007 7:07 pm
Forum: PSP Development
Topic: Question of function return value
Replies: 2
Views: 1097

jimparis wrote:You are not returning the address of P, you're returning what P points to. In this case, you are returning the address of a static string (in the text segment).
Oh, thank you! It's const. I make a big mistake.
by picobsd
Fri Apr 20, 2007 5:53 pm
Forum: PSP Development
Topic: Question of function return value
Replies: 2
Views: 1097

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 -------...
by picobsd
Fri Apr 20, 2007 11:52 am
Forum: PSP Development
Topic: where can I get the make file for PSP module?
Replies: 3
Views: 1592

dot_blank wrote:there are templates of prx module in the samples dir
most times all you really must do is build your ELF with adding to makefile
BUILD_PRX = 1
I am going to try it, thanks you
by picobsd
Thu Apr 19, 2007 7:38 pm
Forum: PSP Development
Topic: where can I get the make file for PSP module?
Replies: 3
Views: 1592

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...