Jump to content
  • Advertisement
Sign in to follow this  
blueshogun96

OpenAL on Mac?

This topic is 2114 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

I'm an experienced OpenAL programmer/user here, but I'm having one heck of a hard time getting it to work on Mac OSX. I originally wrote my OpenAL code for Windows, very easy. Then I ported it over to iOS with minimal effort and even got it working on my first try. Now I port my code directly over to Mac OSX, nope, doesn't work! I have absolutely no idea why it's not working. I haven't found any tutorials or code on using OpenAL on Mac OSX either, so I don't know whether I missed any steps or not. Do I have to do anything special to the .xib file? That's what I had to do to get OpenGL to work on Mac OSX (and that was also a nightmare), but I honestly have absolutely NO idea why my code works on every other platform except MacOSX. This sucks. Any ideas? Thanks.

EDIT: Attached my entire OpenAL source code files for those who want to see it. It's a bit messy, but it works fine on Windows and iOS.

Share this post


Link to post
Share on other sites
Advertisement
Isn't alut depreceated? I recently had no problems on Ubuntu/OSX/Windosw but I used sdl for sound loading. There should be tons of Linux/Unix tutorials, simply grab one.

Share this post


Link to post
Share on other sites
ALUT is depreciated, but I'm not using that. I'm using my own .wav reading functions.

I've been searching Google and I haven't seen any Unix based tutorials, and even Windows based tutorials are becoming scarce enough as it is.

Share this post


Link to post
Share on other sites
Thanks for your replies. I did manage to find the problem, but it turns out that it's not code related. In order to fix the problem, I had to switch the processer architecture to 32-bit (i386) instead of 64-bit (x86-64). IMO, this might be a bit of a problem for future Mac OSX releases.

I have yet to see any support for OpenAL on 64-bit Mac applications, but I'd rather keep my OpenAL code if possible, but not at the expense of risking future compatibility. Any ideas?

Share this post


Link to post
Share on other sites
Try http://kcat.stranges...l.html#download

OpenAL Soft. Its not properitary like OpenAL now and can be build with GCC on Linux/Unix and 32 and 64-Bit MacOSX 10.5/10.6./10.7/.10.8
Bit Shared object and on Windows as DLL. Its comes with a CMake buildsystem, so you also can build it easly on a non posix ready platform
like Win32 with Visual C/C++. Its tiny and robust like freeglut and i like a much. You have 3D-Audio and Realtime Sound.

Peter Edited by pmvstrm

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!