Game Development Community

dev|Pro Game Development Curriculum

OpenAL Default DLL

by Marcelo Oliveira · 01/23/2004 (10:59 am) · 1 comments

- Rename your OpenAL32.dll (in the game directory) to DefOpenAl32.dll


- In \engine\platformWin32\winOpenAL.cc

Modify at line 113:
winState.hinstOpenAL = LoadLibrary( "OpenAl32.dll" );

   // Add this (tries the default OpenAL lib)
   if(winState.hinstOpenAL == NULL)
      winState.hinstOpenAL = LoadLibrary( "DefOpenAl32.dll" );

This way, if the game can't load a system direct OpenAL DLL (better option), it will load the default DS wrapper.