OpenAL
OpenAL
As part of something Wally and I are working on, I needed to port OpenAL to the PSP. Here's the initial result. This is a port of OpenAL-Soft 1.6.372, and freealut 1.1.0. I also converted the examples to the PSP for testing.
What do you get? You get an output device that outputs 16 bit stereo at 44100 Hz (the mixer will convert other rates and formats to that), and an input device that captures 16 bit mono at 44100, 22050, or 11025 Hz (you MUST specify that EXACTLY or it won't open).
There are two OpenAL examples - one that gives all the info about the driver, and another that captures from the mic and plays out the headphones (only SOCOM mic support right now). There are two ALUT examples - one that plays the built-in "Hello World" waveform, and another that plays four different waves from the memstick.
The capture example is particularly handy as it's almost impossible to find OpenAL capture example code on the net. My example was based off an abandoned non-functional example someone did but couldn't get working.
freealut-psp-090314.zip
openal-soft-psp-090314.zip
What do you get? You get an output device that outputs 16 bit stereo at 44100 Hz (the mixer will convert other rates and formats to that), and an input device that captures 16 bit mono at 44100, 22050, or 11025 Hz (you MUST specify that EXACTLY or it won't open).
There are two OpenAL examples - one that gives all the info about the driver, and another that captures from the mic and plays out the headphones (only SOCOM mic support right now). There are two ALUT examples - one that plays the built-in "Hello World" waveform, and another that plays four different waves from the memstick.
The capture example is particularly handy as it's almost impossible to find OpenAL capture example code on the net. My example was based off an abandoned non-functional example someone did but couldn't get working.
freealut-psp-090314.zip
openal-soft-psp-090314.zip