Jump to content
  • Advertisement
Sign in to follow this  
Term

[MAC OSX, C++] Sound? OpenAL?

This topic is 3296 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone! I programmed a game using OpenGL graphix and C++ and it is quite finish now. The main thing, which i still miss, is a sound implementation. I'm writing the game for Mac OS X, but I would prefer staying platform independent, to have the ability to compile it for Win and Linux, too. For now, it's theoretically platform independent. So, which sound library should I use? I found OpenAL and I can easily embed it in my software, but I don't really know, how to use it? Of course, there are several nice tutorials in the web, but they all use ALUT and that's not supported by the latest version of OpenAL. They deleted the alut.h file and others. So, these tutorials unfortunately are useless for me. And i found some more interesting sound libraries for game programmers. With these I've got another problem. I cannot include them into my project. I read something about one should create a framework file out of the compiled .dylib and put it into the XCode project, but everything I found in the web, did not really work. I found a Python script, which should create those framework files from .dylib, but it didn't work.

Share this post


Link to post
Share on other sites
Advertisement
I use GLUT for keyboard and mouse input and for windowing.

On topic: I just found some OpenAL examples on the official Apple Website, but I've got the same problem here. Everything is a little too old and they all are useless now.

Share this post


Link to post
Share on other sites
What exactly is old in OpenAL tutorials?
alut init/exit functions can be easily replaced with alc functions.
And for WAV loading you just simply use what suits best for you - mp3, ogg, or whatever else library. For example ALURE (it also includes alternatives to alutInit/Exit functions).

Share this post


Link to post
Share on other sites
The OpenAL tutorials use ALUT and that's not supported anymore. The tutorials given by apple are too old, says XCode. I cannot open the XCode project files.

what is alc? could you please give me an example?

ALURE looks very interesting, but i don't get it embedded in my project right now. How can I manage it working with my project in XCode?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!