Skip to content

Commit 0a377a3

Browse files
committed
Update to v0.7.9a1
1 parent 2f2ce91 commit 0a377a3

8 files changed

Lines changed: 26 additions & 26 deletions

File tree

openal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
try:
99
from pyogg import *
10-
PYOGG_AVAIL = PYOGG_OGG_AVAIL
10+
PYOGG_AVAIL = (PYOGG_OGG_AVAIL and PYOGG_VORBIS_AVAIL and PYOGG_VORBIS_FILE_AVAIL) or (PYOGG_OPUS_AVAIL and PYOGG_OPUS_FILE_AVAIL) or PYOGG_FLAC_AVAIL
1111
except:
1212
PYOGG_AVAIL = False
1313

openal/_al.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
from al import *
2+
3+
import warnings
4+
5+
warnings.warn(DeprecationWarning("This submodule will no longer be supported in a future release.\nPlease use 'al' instead"))

openal/_alc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
from alc import *
2+
3+
import warnings
4+
5+
warnings.warn(DeprecationWarning("This submodule will no longer be supported in a future release.\nPlease use 'alc' instead"))

openal/al.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,7 @@
33
import ctypes
44
import ctypes.util
55

6-
from .library_loader import ExternalLibrary, ExternalLibraryError
7-
8-
lib = None
9-
for name in ("openal", "OpenAL32", "soft_oal"):
10-
try:
11-
lib = ExternalLibrary.load(name)
12-
except:
13-
continue
14-
if lib: break
15-
16-
if not lib:
17-
raise ExternalLibraryError("OpenAL library couldn't be found")
6+
from .al_lib import lib
187

198
AL_NONE = 0
209
AL_FALSE = 0

openal/al_lib.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from .library_loader import ExternalLibrary, ExternalLibraryError
2+
3+
lib = None
4+
for name in ("soft_oal", "OpenAL32", "openal"):
5+
try:
6+
lib = ExternalLibrary.load(name)
7+
except:
8+
continue
9+
if lib: break
10+
11+
if not lib:
12+
raise ExternalLibraryError("OpenAL library couldn't be found")

openal/alc.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,7 @@
33
import ctypes
44
import ctypes.util
55

6-
from .library_loader import ExternalLibrary, ExternalLibraryError
7-
8-
lib = None
9-
for name in ("openal", "OpenAL32", "soft_oal"):
10-
try:
11-
lib = ExternalLibrary.load(name)
12-
except:
13-
continue
14-
if lib: break
15-
16-
if not lib:
17-
raise ExternalLibraryError("OpenAL library couldn't be found")
6+
from .al_lib import lib
187

198
ALC_FALSE = 0
209
ALC_TRUE = 1

openal/library_loader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ctypes
2+
import ctypes.util
23
import os
34
import sys
45
import platform

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Versions should comply with PEP440. For a discussion on single-sourcing
1919
# the version across setup.py and the project code, see
2020
# https://packaging.python.org/en/latest/single_source_version.html
21-
version='0.7.6a1',
21+
version='0.7.9a1',
2222

2323
description='OpenAL integration for Python',
2424
long_description=open(path.join(here, 'README.md')).read(),
@@ -60,6 +60,7 @@
6060
'Programming Language :: Python :: 3.5',
6161
'Programming Language :: Python :: 3.6',
6262
'Programming Language :: Python :: 3.7',
63+
'Programming Language :: Python :: 3.8',
6364
],
6465

6566
# What does your project relate to?

0 commit comments

Comments
 (0)