Merge pull request #23 from rkitover/master

improve OpenAL support on Mac and make it default
This commit is contained in:
Zach Bacon 2016-09-20 20:38:38 -04:00 committed by GitHub
commit 30801e1554
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;