On Tue, Sep 2, 2008 at 9:17 PM, Ragzouken <[EMAIL PROTECTED]> wrote: > > In the example code I give, is directsound not omitted? (I don't know > if I'm doing it wrong :P) With code as: > for driver_name in pyglet.options['audio']: > try: > driver_name = 'pyglet.media.drivers.' + driver_name > __import__(driver_name) > driver = sys.modules[driver_name] > break > except (ImportError, AttributeError), e: > import sys, traceback > traceback.print_exc(file=sys.stdout) > > I still only get: > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/pyglet/media/__init__.py", > line 1328, in <module> > __import__(driver_name) > File "/usr/lib/python2.5/site-packages/pyglet/media/drivers/ > directsound/__init__.py", line 47, in <module> > from pyglet.media.drivers.directsound import lib_dsound as lib > File "/usr/lib/python2.5/site-packages/pyglet/media/drivers/ > directsound/lib_dsound.py", line 39, in <module> > lib = ctypes.oledll.dsound > AttributeError: 'module' object has no attribute 'oledll'
Right, sorry. You're original example sets the audio option too late -- after the media module has been imported. This is why you're getting the directsound error, and also why alsa isn't being used. Alex. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
