Skip to content
Snippets Groups Projects
Commit 88f507f9 authored by Alain Linden's avatar Alain Linden
Browse files

fixes to get openal working on windows.

parent a14c5e8f
No related branches found
No related tags found
No related merge requests found
...@@ -1301,6 +1301,18 @@ ...@@ -1301,6 +1301,18 @@
<key>name</key> <key>name</key>
<string>linux</string> <string>linux</string>
</map> </map>
<key>windows</key>
<map>
<key>archive</key>
<map>
<key>hash</key>
<string>04df406f3e5d04cf176660bdac66c3a1</string>
<key>url</key>
<string>http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-openal/rev/222391/arch/CYGWIN/installer/openal-1.12.854-1.1.0-windows-20110301.tar.bz2</string>
</map>
<key>name</key>
<string>windows</string>
</map>
</map> </map>
<key>version</key> <key>version</key>
<string>3ad86a1c</string> <string>3ad86a1c</string>
......
...@@ -9,6 +9,7 @@ else (LINUX) ...@@ -9,6 +9,7 @@ else (LINUX)
endif (LINUX) endif (LINUX)
if (OPENAL) if (OPENAL)
set(OPENAL_LIB_INCLUDE_DIRS "${LIBS_PREBUILT_DIR}/include/AL")
if (STANDALONE) if (STANDALONE)
include(FindPkgConfig) include(FindPkgConfig)
include(FindOpenAL) include(FindOpenAL)
...@@ -17,10 +18,17 @@ if (OPENAL) ...@@ -17,10 +18,17 @@ if (OPENAL)
else (STANDALONE) else (STANDALONE)
use_prebuilt_binary(openal_soft) use_prebuilt_binary(openal_soft)
endif (STANDALONE) endif (STANDALONE)
set(OPENAL_LIBRARIES if(WINDOWS)
openal set(OPENAL_LIBRARIES
alut OpenAL32
alut
) )
else()
set(OPENAL_LIBRARIES
openal
alut
)
endif()
endif (OPENAL) endif (OPENAL)
if (OPENAL) if (OPENAL)
......
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
#include "lllistener_openal.h" #include "lllistener_openal.h"
const float LLAudioEngine_OpenAL::WIND_BUFFER_SIZE_SEC = 0.05f;
LLAudioEngine_OpenAL::LLAudioEngine_OpenAL() LLAudioEngine_OpenAL::LLAudioEngine_OpenAL()
: :
mWindGen(NULL), mWindGen(NULL),
......
...@@ -67,7 +67,7 @@ class LLAudioEngine_OpenAL : public LLAudioEngine ...@@ -67,7 +67,7 @@ class LLAudioEngine_OpenAL : public LLAudioEngine
int mNumEmptyWindALBuffers; int mNumEmptyWindALBuffers;
static const int MAX_NUM_WIND_BUFFERS = 80; static const int MAX_NUM_WIND_BUFFERS = 80;
static const float WIND_BUFFER_SIZE_SEC = 0.05f; // 1/20th sec static const float WIND_BUFFER_SIZE_SEC; // 1/20th sec
}; };
class LLAudioChannelOpenAL : public LLAudioChannel class LLAudioChannelOpenAL : public LLAudioChannel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment