Re: Pyglet help
Hm, not the most elegant way of integrating the code, but it seems the issue is when you try loading the sound file in the Prototype class:
self.music = pyglet.media.StaticSource(pyglet.media.load('name[0]',streaming=False))
First, when loading "name[0]" your not including the file extension or the path, so something like:
self.music = pyglet.media.StaticSource(pyglet.media.load(path+"\\"+name[0]+name[1],streaming=False))
Another way would be to just go straight from the playlist though, like so:
self.music = pyglet.media.StaticSource(pyglet.media.load(path+"\\"+playlist[0],streaming=False))
Integrating it with the Prototype class could help with additional searches, changing songs, etc.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector