Skip to content

Commit 17ae11b

Browse files
committed
No support for OpenAL in Big Sur
1 parent 6380949 commit 17ae11b

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

setup.py

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -233,23 +233,20 @@ def run(self):
233233
)
234234
)
235235
elif sys.platform.startswith('darwin'):
236-
sb_include_dirs.append('/System/Library/Frameworks/OpenAL.framework/Versions/A/Headers')
237236
if platform.release() < '20':
238-
openal = '/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL'
239-
else:
240-
openal = '/System/Library/Frameworks/OpenAL.framework/Versions/A/Resources/BridgeSupport/OpenAL.bridgesupport'
241-
ext_modules.append(
242-
Extension(
243-
name='sphinxbase._ad_openal',
244-
sources=['swig/sphinxbase/ad_openal.i', 'deps/sphinxbase/src/libsphinxad/ad_openal.c'],
245-
swig_opts=sb_swig_opts,
246-
include_dirs=sb_include_dirs,
247-
extra_objects=[openal],
248-
define_macros=define_macros,
249-
extra_compile_args=extra_compile_args,
250-
extra_link_args=extra_link_args
237+
sb_include_dirs.append('/System/Library/Frameworks/OpenAL.framework/Versions/A/Headers')
238+
ext_modules.append(
239+
Extension(
240+
name='sphinxbase._ad_openal',
241+
sources=['swig/sphinxbase/ad_openal.i', 'deps/sphinxbase/src/libsphinxad/ad_openal.c'],
242+
swig_opts=sb_swig_opts,
243+
include_dirs=sb_include_dirs,
244+
extra_objects=['/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL'],
245+
define_macros=define_macros,
246+
extra_compile_args=extra_compile_args,
247+
extra_link_args=extra_link_args
248+
)
251249
)
252-
)
253250
elif sys.platform.startswith('linux'):
254251
ext_modules.extend([
255252
Extension(

sphinxbase/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@
3030
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131

3232
import sys
33+
import platform
3334

3435
if sys.platform.startswith('win'):
3536
from .ad_win32 import *
3637
elif sys.platform.startswith('darwin'):
37-
from .ad_openal import *
38+
if platform.release() < '20': # OpenAL not supported in Big Sur
39+
from .ad_openal import *
3840
elif sys.platform.startswith('linux'):
3941
try:
4042
from .ad_pulse import *

0 commit comments

Comments
 (0)