forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OpenAL

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Mar 15, 2009 2:52 pm    Post subject: OpenAL Reply with quote

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
View user's profile Send private message AIM Address
Chrighton



Joined: 15 Jun 2005
Posts: 58

PostPosted: Mon Mar 16, 2009 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Mon Mar 16, 2009 9:32 am    Post subject: Reply with quote

it took him five minutes :P
Back to top
View user's profile Send private message AIM Address
Chrighton



Joined: 15 Jun 2005
Posts: 58

PostPosted: Mon Mar 16, 2009 9:39 am    Post subject: Reply with quote

Then he saved us five minutes :D
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Mar 16, 2009 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Drakon



Joined: 08 Apr 2008
Posts: 13
Location: Poznan - Poland

PostPosted: Tue Mar 17, 2009 3:41 am    Post subject: Reply with quote

J.F. - love you :) Seriously thanks for you hard work :> I will also test library :)
Back to top
View user's profile Send private message Visit poster's website
NoEffex



Joined: 27 Nov 2008
Posts: 108

PostPosted: Tue Mar 17, 2009 6:25 am    Post subject: Reply with quote

Have I ever told you I want to bear your children? Because I do.
_________________
Programming with:
Geany + Latest PSPSDK from svn
Back to top
View user's profile Send private message
justin



Joined: 17 Oct 2007
Posts: 16

PostPosted: Wed Mar 18, 2009 12:08 pm    Post subject: Reply with quote

This makes me happy! Thnx.
Back to top
View user's profile Send private message
fungos



Joined: 31 Oct 2007
Posts: 41
Location: cwb br

PostPosted: Mon Apr 06, 2009 10:44 am    Post subject: Reply with quote

Is that on svn or psp libraries script already?
Back to top
View user's profile Send private message Visit poster's website
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Mon Apr 06, 2009 9:43 pm    Post subject: Reply with quote

Thanks for sharing :)
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Apr 07, 2009 12:14 pm    Post subject: Reply with quote

@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
View user's profile Send private message AIM Address
fungos



Joined: 31 Oct 2007
Posts: 41
Location: cwb br

PostPosted: Tue Apr 07, 2009 10:32 pm    Post subject: Reply with quote

@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
View user's profile Send private message Visit poster's website
justin



Joined: 17 Oct 2007
Posts: 16

PostPosted: Thu Jan 28, 2010 12:27 am    Post subject: Reply with quote

Finally got around to implementing this in a game. Works out of the box, thanks :) Bye bye SDL_mixer!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group