| View previous topic :: View next topic |
| Author |
Message |
siberianstar
Joined: 22 Jun 2006 Posts: 70
|
Posted: Sat Aug 05, 2006 4:32 am Post subject: pspaudiolib.c - some fixes |
|
|
Well, you all know the pspaudiolib from the PSP SDK.
It creates 8 running Threads that kill your CPU if you are doing something other. Well i did a little change,
now the threads without a callback set are sleeped, and when you set a new call back the program wake up the thread.
Give a look @ http://85.25.18.122/pspaudiolib.c |
|
| Back to top |
|
 |
DeNitro
Joined: 16 Sep 2005 Posts: 4
|
Posted: Wed Aug 09, 2006 2:21 am Post subject: |
|
|
I just tried this out and it works great. Got a small FPS increase and it still works as well as the original (My app is using 1-2 audio channels).
Nice change Siberianstar =)
--DeNitro |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Aug 22, 2006 9:25 am Post subject: |
|
|
| There are some problems here; for example it looks like you're now ignoring the "pdata" argument in pspAudioSetChannelCallback. Can you check that, and double check that things still work correctly with other applications that use pspaudiolib? Also, please send this as a patch, it's easier to see your changes & apply it that way. |
|
| Back to top |
|
 |
Shazz

Joined: 31 Aug 2004 Posts: 244 Location: Somewhere over the rainbow
|
Posted: Thu Aug 31, 2006 6:43 am Post subject: |
|
|
I can suggest another patch I have added, create the threads in user mode explicitely else, in case your main app is running in kernel mode, the audio threads will be in kernel mode too, that means :
- harder to kill
- no sound output in psplink _________________ - TiTAN Art Division -
http://www.titandemo.org |
|
| Back to top |
|
 |
|