Re: pyglet audiogame examples
Yeah. I think so. You seem to get the gist anyway.
But:
First, you can use Pyglet for everything and Pygame for sound, I believe. I'm pretty sure that Pygame doesn't specifically take over the main thread like Pyglet does, and coding this stuff yourself is a waste of time if you can help it. I'm also pretty sure that Pygame isn't going to go much further with loading audio types; ogg only, as I recall.
Second, just copy avbin.dll to the directory with python in it. Alternatively, copy avbin.dll to the directory with your stuff in it, but you'll need to launch from a terminal with the current directory set there. Or use this bit of hackery that works only on Windows:
import ctypes
avbin= ctypes.cdll.LoadLibrary(path_to_avbin)
And then make your engine find an avbin.dll that's distributed with it and run those lines before the first Pyglet import.
Dhruv (sorry about spelling) just figured this out and can probably tell you what you have to do more specifically. I have Libaudioverse, as always.
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector