| View previous topic :: View next topic |
| Author |
Message |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sun Mar 15, 2009 2:52 pm Post subject: 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 |
|
| Back to top |
|
 |
Chrighton
Joined: 15 Jun 2005 Posts: 58
|
Posted: Mon Mar 16, 2009 8:56 am Post subject: |
|
|
| Nice work as always, JF. I was considering looking into porting OpenAL in the coming weeks/months as it seemed no one was ever going to do it :) |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Mon Mar 16, 2009 9:32 am Post subject: |
|
|
| it took him five minutes :P |
|
| Back to top |
|
 |
Chrighton
Joined: 15 Jun 2005 Posts: 58
|
Posted: Mon Mar 16, 2009 9:39 am Post subject: |
|
|
| Then he saved us five minutes :D |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon Mar 16, 2009 10:09 am Post subject: |
|
|
| Wally's just exaggerating a little as a joke... it was actually probably about 10 hours of work all added up, with much of that being debugging. If you find a problem, be sure to let me know... or post a fix in the thread if you correct it yourself. |
|
| Back to top |
|
 |
Drakon
Joined: 08 Apr 2008 Posts: 13 Location: Poznan - Poland
|
Posted: Tue Mar 17, 2009 3:41 am Post subject: |
|
|
| J.F. - love you :) Seriously thanks for you hard work :> I will also test library :) |
|
| Back to top |
|
 |
NoEffex
Joined: 27 Nov 2008 Posts: 108
|
Posted: Tue Mar 17, 2009 6:25 am Post subject: |
|
|
Have I ever told you I want to bear your children? Because I do. _________________ Programming with:
Geany + Latest PSPSDK from svn |
|
| Back to top |
|
 |
justin
Joined: 17 Oct 2007 Posts: 16
|
Posted: Wed Mar 18, 2009 12:08 pm Post subject: |
|
|
| This makes me happy! Thnx. |
|
| Back to top |
|
 |
fungos
Joined: 31 Oct 2007 Posts: 41 Location: cwb br
|
Posted: Mon Apr 06, 2009 10:44 am Post subject: |
|
|
| Is that on svn or psp libraries script already? |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Mon Apr 06, 2009 9:43 pm Post subject: |
|
|
Thanks for sharing :) _________________
Upgrade your PSP |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Tue Apr 07, 2009 12:14 pm Post subject: |
|
|
@Pirata: You're welcome.
@fungos: Most lib conversions don't get added to the svn unless they're pretty important. OpenAL isn't one of those things you see too often, so it would surprise me if it ever made it into the repo. |
|
| Back to top |
|
 |
fungos
Joined: 31 Oct 2007 Posts: 41 Location: cwb br
|
Posted: Tue Apr 07, 2009 10:32 pm Post subject: |
|
|
@J.F.: Yeah. I think OpenAL is amazingly important for any game ;) Maybe we can get it into svn.
Good job btw, you're the man. |
|
| Back to top |
|
 |
justin
Joined: 17 Oct 2007 Posts: 16
|
Posted: Thu Jan 28, 2010 12:27 am Post subject: |
|
|
| Finally got around to implementing this in a game. Works out of the box, thanks :) Bye bye SDL_mixer! |
|
| Back to top |
|
 |
|