OpenAL

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

Moderators: cheriff, TyRaNiD

Post Reply
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

OpenAL

Post by J.F. »

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
Chrighton
Posts: 58
Joined: Wed Jun 15, 2005 8:24 pm

Post by Chrighton »

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 :)
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

it took him five minutes :P
Chrighton
Posts: 58
Joined: Wed Jun 15, 2005 8:24 pm

Post by Chrighton »

Then he saved us five minutes :D
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
Drakon
Posts: 13
Joined: Tue Apr 08, 2008 3:46 pm
Location: Poznan - Poland
Contact:

Post by Drakon »

J.F. - love you :) Seriously thanks for you hard work :> I will also test library :)
NoEffex
Posts: 106
Joined: Thu Nov 27, 2008 6:48 am

Post by NoEffex »

Have I ever told you I want to bear your children? Because I do.
Programming with:
Geany + Latest PSPSDK from svn
justin
Posts: 15
Joined: Wed Oct 17, 2007 7:34 pm

Post by justin »

This makes me happy! Thnx.
fungos
Posts: 41
Joined: Wed Oct 31, 2007 10:43 am
Location: cwb br
Contact:

Post by fungos »

Is that on svn or psp libraries script already?
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

Thanks for sharing :)
Image
Upgrade your PSP
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

@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.
fungos
Posts: 41
Joined: Wed Oct 31, 2007 10:43 am
Location: cwb br
Contact:

Post by fungos »

@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.
justin
Posts: 15
Joined: Wed Oct 17, 2007 7:34 pm

Post by justin »

Finally got around to implementing this in a game. Works out of the box, thanks :) Bye bye SDL_mixer!
Post Reply