mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-20 01:31:09 +00:00
Remove hard-wired -framework OpenAL
We already link to OPENAL_LIBRARY further down. Log some debug OpenAL info, mainly so OSX users can check they are not using Apple's OpenAL. OpenAL Soft is recommended as it fixes many issues. I specify it as follows: cmake -DOPENAL_LIBRARY=/usr/local/lib/libopenal.dylib -DOPENAL_INCLUDE_DIR=/usr/local/include -GXcode ../neo/ (because FindOpenAL.cmake prefers the /System frameworks)
This commit is contained in:
parent
496095139b
commit
468b266860
2 changed files with 7 additions and 1 deletions
|
@ -188,7 +188,7 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|||
message(FATAL_ERROR "Unsupported CPU architecture for OSX")
|
||||
endif()
|
||||
|
||||
set(sys_libs ${sys_libs} "-framework Carbon -framework Cocoa -framework OpenGL -framework OpenAL -framework IOKit")
|
||||
set(sys_libs ${sys_libs} "-framework Carbon -framework Cocoa -framework OpenGL -framework IOKit")
|
||||
else()
|
||||
if (cpu STREQUAL "x86" AND X86)
|
||||
add_definitions(-m32)
|
||||
|
|
|
@ -338,6 +338,12 @@ void idSoundSystemLocal::Init() {
|
|||
alcMakeContextCurrent( openalContext );
|
||||
common->Printf( "Done.\n" );
|
||||
|
||||
// log openal info
|
||||
common->Printf( "AL_VERSION: %s\n", alGetString(AL_VERSION));
|
||||
common->Printf( "AL_VENDOR: %s\n", alGetString(AL_VENDOR));
|
||||
common->Printf( "AL_RENDERER: %s\n", alGetString(AL_RENDERER));
|
||||
common->Printf( "AL_EXTENSIONS: %s\n", alGetString(AL_EXTENSIONS));
|
||||
|
||||
#if ID_OPENAL_EAX
|
||||
// try to obtain EAX extensions
|
||||
if ( idSoundSystemLocal::s_useEAXReverb.GetBool() && alIsExtensionPresent( ID_ALCHAR "EAX4.0" ) ) {
|
||||
|
|
Loading…
Reference in a new issue