Skip to content

Commit 40483e5

Browse files
committed
don't try to load alsa library on mac
1 parent e0c39c7 commit 40483e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pcbasic/interface/audio_portaudio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# for detection by packagers
1616
import pyaudio
1717

18-
from ..compat import zip, WIN32
18+
from ..compat import zip, WIN32, MACOS
1919
from .audio import AudioPlugin
2020
from .base import audio_plugins, InitFailed
2121
from . import synthesiser
@@ -30,7 +30,7 @@
3030

3131
# suppress ALSA debug messages
3232
# https://stackoverflow.com/questions/7088672/pyaudio-working-but-spits-out-error-messages-each-time
33-
if WIN32:
33+
if WIN32 or MACOS:
3434
@contextmanager
3535
def _quiet_alsa(): yield
3636
else:

0 commit comments

Comments
 (0)