[Openal] Mac OS X i386

Edward Rudd urkle at outoforder.cc
Fri Sep 17 12:48:07 PDT 2010


On Sep 17, 2010, at 13:27 , ian clevy wrote:

> Hey,
> 
> Thanks for your answer.
> 
> Any version is good for me just as long as it runs with the rest of my program ( which also uses SDL and OpenGL ). 

Use the system provided openAL framework, it's what I'm using for the port of Amnesia:: The Dark Descent that just got released last week. And I'm building that for PPC and x86 architecture.

> Since I sent my first message I have got the program compiled for a ppc architecture. I can run the program from Finder, the sounds don't play correctly ( some kind of fuzzy noise covers the sounds ). This may be a problem with my code that imports the wav files ( that works under windows ) or another compatibility problem. But I'm using gcc 4.0 as a compiler and xCode won't let me debug or run the program because its says the debugger doesn't support ppc. So I can't debug :-(. 

Yes, one of the lovely issues of trying to develop PPC apps on an intel mac..  You need to have a PPC mac to debug on (you can remote debug from your intel mac though Xcode though)..  what you are probably hitting is an endianess bug.. you need to swap your data on the way in from the file then it'll sound correct. So debugging on the i386 wouldn't help you there as i386 is little endian as well.

> With a i386 version of OpenAL for Mac I think I could at least debug or should I be using a different compiler / debugger ?

If you are running  OS X Tiger, then the included OpenAL framework (in /System/Library/Frameworks/OpenAL.framework) includes both the i386 and PPC binaries.    In leopard(possibly), but defintely in snow leopard and higher it includes all 3 archs.  i386, ppc, and x86_64. So there is no need for any building of OpenAL, just include the system OpenAL framework.   

> > Message du 17/09/10 18:31
> > De : "Edward Rudd" 
> > A : "ian clevy" 
> > Copie à : openal at opensource.creative.com
> > Objet : Re: [Openal] Mac OS X i386
> >
> > OpenAL is included with Mac OS X so there is no need to build your own.
> 
> >
> Is there a specific reason you are not wanting to use the provided implementation from Apple?
> 
> >
> On Sep 17, 2010, at 12:00 , ian clevy wrote:
> 
> Hi all.
> > 
> > I'm trying to use OpenAL under Mac OSX built for an i386 architecture. It compiles fine but it won't link with the framework i downloaded from the main OpenAL site. The framework was built for ppc !
> > 
> > Does anyone know where I can find a pre-built openAL framework for an i386 architecture ?
> > 
> > If not, any tips on building one for myself ?
> > 
> > Have a great day !
> > 
> > ian
> >
> 
> > 
> > _______________________________________________
> > Openal mailing list
> > Openal at opensource.creative.com
> > http://opensource.creative.com/mailman/listinfo/openal
> >
> 
> 
> >
> 
> 
> Edward Rudd
> OutOfOrder.cc
> 317-674-3296
> 
> >
> 
> 
> 
> 
> 
> 
> 
> >
> 
> 
> 
> 

Edward Rudd
OutOfOrder.cc
317-674-3296





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20100917/03220690/attachment.html


More information about the Openal mailing list