improve OpenAL support on Mac and make it default

Fix the dynamic library path for OpenAL to the framework included with
OS X.

Make option initialization set the AudioAPI to OpenAL on mac by default,
since SDL sound is currently completely broken.

There is a lot of stuttering, will have to look at that next.
This commit is contained in:
Rafael Kitover 2016-09-20 05:24:25 -07:00
parent 9b65a9cf29
commit cc7394f730
2 changed files with 5 additions and 1 deletions

View File

@ -350,7 +350,7 @@ bool OpenAL::LoadOAL()
#else
#ifdef __WXMAC__
// on macosx, it's just plain OpenAL
!Lib.Load(wxT("OpenAL"), wxDL_NOW | wxDL_VERBATIM) &&
!Lib.Load(wxT("/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL"), wxDL_NOW | wxDL_VERBATIM) &&
#endif
#endif
// on linux, it's libopenal.so

View File

@ -273,6 +273,10 @@ opts_t::opts_t()
frameSkip = -1;
#ifdef __WXMSW__
audio_api = AUD_DIRECTSOUND;
#else
#ifdef __WXMAC__
audio_api = AUD_OPENAL;
#endif
#endif
video_scale = 3;
retain_aspect = true;