★ TouchArcade needs your help. Click here to support us on Patreon.

OpenAL books?

09-07-2009, 12:02 PM
#1
Joined: Mar 2009
Location: Oslo, Norway
Posts: 731
OpenAL books?

Anyone have any recommendations for books covering OpenAL? It seems the only book dealing just with OpenAL is out of print so I guess I might have to settle for something that covers OpenAL non-exclusively. Any suggestions?
09-07-2009, 12:40 PM
#2
Joined: Mar 2009
Location: St-Hubert (Quebec), Canada
Posts: 133
Well I just check and indeed the book from Charles Rive (The OpenAL programming book) seems to be out of stock everywhere .

You might want to check the following site with the official documentation :
http://connect.creativelabs.com/open.../AllItems.aspx

09-07-2009, 01:01 PM
#3
Joined: Mar 2009
Location: Oslo, Norway
Posts: 731
09-07-2009, 01:48 PM
#4
Joined: Oct 2008
Location: Toronto Canada
Posts: 863
OpenAL is a small simple API (even more so on the iPhone) so a book is overkill IMHO - the programming guide and the header pretty much cover it.

Grab Apple's oalTouch example to see how to initialize OpenAL and load and play sounds, then extrapolate from there if you need more functionality.

SHREDD GO FAST! FREE!
Nozoku Rush Kick Math's Ass!
Critter Panic Break yer brain! FREE!
Silverfish & Silverfish MAX Hardcore arcade insanity!
Nozoku A casual game of math & logic.
More: cbox.me Twitter YouTube
09-07-2009, 02:01 PM
#5
Joined: Mar 2009
Location: Oslo, Norway
Posts: 731
Actually oaltouch was my reason for wanting a book. I downloaded the project earlier today and was greeted with no less than 17 errors when trying to compile. I always prefer to approach new API's through a textbook if possible. English is, and will always remain, a foreign language to me, and personally I find it much easier to learn this kind of stuff by first getting a comprehensive overview printed in black on bleached ex-trees.

Point taken though especially as it seems there aren't any alternatives to be found. ;-)
09-07-2009, 09:09 PM
#6
Quote:
Originally Posted by NickFalk View Post
Actually oaltouch was my reason for wanting a book. I downloaded the project earlier today and was greeted with no less than 17 errors when trying to compile.
That is not normal and I doubt a book about OpenAL will help you rectify those problems. The most difficult aspects of using OpenAL on the iPhone are not generic OpenAL issues, they are things like: how to load different format files, how many sources are supported, how to initialize the context, how to deal with audio session interruption and why the hell doesn't my audio work on the simulator. A generic OpenAL book won't help you with any of that.
09-08-2009, 12:43 AM
#7
Joined: Mar 2009
Location: Oslo, Norway
Posts: 731
Quote:
Originally Posted by Steve Oldmeadow View Post
The most difficult aspects of using OpenAL on the iPhone are not generic OpenAL issues, they are things like: how to load different format files, how many sources are supported, how to initialize the context, how to deal with audio session interruption and why the hell doesn't my audio work on the simulator. A generic OpenAL book won't help you with any of that.
Frankly, I would expect a book on the subject to cover every single one of those issues save from the bit about the simulator. (And I still believe Apple's example-project not compiling is making things more difficult than necessary). Thanks though, I guess I just have to bite the bullet and learn things the way you and Frank suggest.
09-08-2009, 04:09 AM
#8
Quote:
Originally Posted by NickFalk View Post
And I still believe Apple's example-project not compiling is making things more difficult than necessary
As I said, that is not normal. All the Apple audio examples work fine for me. If you can't get oalTouch to compile it is likely you will have issues with any OpenAL code. What exactly are the compilation errors you are getting?

Some people seem to have issues with including the OpenAL framework. See here for example:

http://cowboyprogramming.com/2009/03...nking-problem/
09-08-2009, 08:10 AM
#9
Joined: Mar 2009
Location: Oslo, Norway
Posts: 731
Thanks again Steve. I've just been to Apple's Developer Forums and it seems I'm not alone. The error I've receiving is the following:

Code:
_alGenBuffers", referenced from:
-[oalPlayback initOpenAL] in oalPlayback.o
_alGenSources", referenced from:
-[oalPlayback initOpenAL] in oalPlayback.o
etc.
It seems the framework could be linking the wrong place(?) It seems I have som digging to do...
09-08-2009, 08:55 AM
#10
^ yep, that is a problem with your OpenAL framework, that link might help.