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
pspaudiolib.c - some fixes
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.
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
- harder to kill
- no sound output in psplink
- TiTAN Art Division -
http://www.titandemo.org
http://www.titandemo.org