iDevGames Forums
3d Audio - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: 3d Audio (/thread-6461.html)



3d Audio - Justin Brimm - Jul 9, 2004 03:21 AM

I'm entering the CMG "Blind" Contest, and I need to use 3d audio (like what Diordna's entry does), but I've yet to find a way to do it. I would think that OpenAL would be promising, but I can't even find an API reference, let alone any samples of it in work. I've also been looking at using Quicktime, but I've yet to find anything that would help me accomplish this.

At least I have NSSpeechRecognition working, and it works great (I want to thank Kelvin for the help he provided on that one).


3d Audio - Justin Brimm - Jul 9, 2004 04:21 AM

I just realized that I can probably fake it, by writing my own system. Make a location based system, that adjusts the speaker balance and volume based on the location of the sound relative to the player. Quicktime should allow both volume and speaker balance to be changed, and everything else I can do myself.


3d Audio - wadesworld - Jul 18, 2004 08:52 PM

OpenAL will certainly work.

How hard have you been looking? I went to Google and typed "OpenAL reference" and this was the first link returned:

http://www.openal.org/oalspecs-annote/

When you download OpenAL from CVS, there are examples included in the distribution.

Wade


3d Audio - AnotherJake - Jul 18, 2004 10:13 PM

For OpenAL:

Some main links:
http://www.openal.org/
http://developer.creative.com/landing.asp?cat=1&sbcat=31&top=38

I thought I got my latest OS X SDK distribution from creative just a few weeks ago but it does not appear to be there anymore. I'm sure it's available on the CVS though.

General overview of OpenAL:
http://www.gamedev.net/reference/articles/article2008.asp

More specific Mac OS X tutorial to get you started (hopefully):
http://www.edenwaith.com/products/pige/tutorials/openal.php

And then to package the OpenAL lib with your application instead of making the user install it:
http://cocoadevcentral.com/articles/000042.php

You'll wind up with a solid OpenAL base in your arsenal. It might seem a little twisted at first but it's very simple and straight-forward after you pick it up.

Good luck!


3d Audio - GioFX - Jul 19, 2004 06:14 AM

the FMOD library (http://www.fmod.org) is very powerful and easy to use (it's free for non commercial use)

Gio