Game Development Community

OpenAL Question

by Shon Gale · in Torque Game Engine · 12/19/2007 (12:12 pm) · 5 replies

Looking through the compiled source I can't find a .lib file for the OpenAL32.dll file used in TGE. Can someone point to the link lib for OpenAL. I am using Windows and VC++ Express to compile. How easy (or HARD) is it to replace the .dll. I want to do this because the new version has many updates. The version of OpeanAL32.dll included with TGE 1.5.2 is 84KB in size where the one I just downloaded is 108KB. The wrap_oal.dll file with TGE 1.5.2 is 256KB and the new one is 404KB so obviously some major changes happened and I want to compile them into TGE.
Any help is greatly appreciated.

#1
12/19/2007 (1:36 pm)
Latest SDK along with documentation is available from the openal site.
#2
12/19/2007 (3:43 pm)
@Gary: I appreciate your quick response to my question. I downloaded the latest SDK from OpenAL.
The new version (summer 2007) is much different than the TGE version. My question was: Where is the OpenAL32.lib file? Or how do they link the .dll into TGE? I can't find it in the TGE source.
Once again thanks
#3
12/19/2007 (4:13 pm)
Not sure it's what you're after,
but in stock tge 1.4,
OpenAL32.dll is in SDK_1.4\example,
and the headers for it are in SDK_1.4\lib\openal\win32\al
#4
12/19/2007 (4:20 pm)
Take a look in platform/winOpenAL.cc. The dll is loaded manually with LoadLibrary() and the symbols bound individually using some macro magic in bindOpenALFunctions.
#5
12/20/2007 (4:05 pm)
@Orion: Always glad to hear from you! Thanks much! Are you going to GDC at Moscone in Feb???? Let me know, we have a rep coming down to make an appearance at least and hand out some stuff and do PR stuff. Maylock would love to meet you if you are going to be there.
@Andy: That seems much simpler, you can plug any OpenAL32.dll and have it read the .dll header using LoadLibrary. Much better!!! Now I know how to deal with it. Macro Magic huh? You got my interest and now I will have to tear it apart and try to figure out what makes it tick.
Thank you very much.