bizarre wavegen audio sample thread issue

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
whizz
Posts: 3
Joined: Tue Jul 19, 2005 1:44 am

bizarre wavegen audio sample thread issue

Post by whizz »

Hi guys,

as a newbie to the PSP development scene, I started out learning from the samples. I was trying to add audio into my own app but run into a bizarre threading issue that was stumping me. To debug this I started tracing my steps back until all I had was the plain wavegen audio sample from the SDK that seems to start hanging if more code is added to it (!?!).

Testing this hang is very simple, if you paste the "small matrix library" functions from the bottom of GU/cube sample cube.c into wavegen main.c and compile, it starts hanging on the device. This without even calling any of the added functions! Any idea what might be going wrong?

The effect looks like some thread (I suspect the audio callback) keeps hogging up all CPU and even text prints to screen very slowly. The application gets so unresponsive that you're forced to power cycle.

I'm using the ooPo toolchain built with script on the 14th.


Cheers, any ideas appreciated
Post Reply