Closed GoogleCodeExporter closed 9 years ago
Whoooot (as they say)
korg@cam pyglet-1.0/examples/noisy $ which python
/usr/bin/python
korg@cam pyglet-1.0/examples/noisy $ export PYGLET_AUDIO="alsa"
korg@cam pyglet-1.0/examples/noisy $ python noisy.py
Traceback (most recent call last):
File "noisy.py", line 51, in <module>
from pyglet import media
File "/usr/lib/python2.5/site-packages/pyglet/media/__init__.py", line 1219, i
n <module>
raise ImportError('No suitable audio driver could be loaded.')
ImportError: No suitable audio driver could be loaded.
korg@cam pyglet-1.0/examples/noisy $ export PYGLET_AUDIO="openal"
korg@cam pyglet-1.0/examples/noisy $ python noisy.py
**WORKED!!**
silent also worked (but without sound obviously!)
So it is just the directsound use which is broken.
Original comment by cameron.blackwood
on 20 Jan 2008 at 12:47
DirectSound can never work under the cygwin build, as the cygwin build of ctypes
doesn't include COM support (the calling convention is different enough from C
that
it can't be emulated from Python alone).
I've made pyglet.com fail on import if sys.platform != 'win32' in r1623. This
should
cause the DirectSound driver to fail on import at the appropriate time, so the
OpenAL
driver should be used as a fallback automatically, without any environment vars.
Let me know if that works for you.
Original comment by Alex.Hol...@gmail.com
on 20 Jan 2008 at 12:53
svn checkout and reinstall fixed it. Go pyglet, go pyglet... :)
Original comment by cameron.blackwood
on 20 Jan 2008 at 1:31
Closing issue.
Original comment by Alex.Hol...@gmail.com
on 20 Jan 2008 at 1:37
Original issue reported on code.google.com by
cameron.blackwood
on 20 Jan 2008 at 12:39