I've started running into a problem where the music of my 'game' cuts
out suddenly and seemingly without cause. I'm running ubuntu linux,
using pulse audio. I've so far managed to cut the code down to this
still-breaking code:
from itertools import cycle
from pyglet.media import Player, load
from pyglet import window, app, options
options['audio'] = ["alsa", "openal"]
class SoundTest(Player):
def __init__(self, tracks):
super(SoundTest, self).__init__()
self.iter = cycle(tracks)
self.queue_next()
self.queue_next()
def queue_next(self):
self.queue(load(self.iter.next()))
def on_music_skip(self):
self.next()
self.queue_next()
def on_eos(self):
self.queue_next()
WINDOW = window.Window(640, 480, "Sound Test")
PLAYER = SoundTest(("sounds/music/menu/ronima.ogg", "sounds/music/menu/
defense theme.ogg"))
PLAYER.play()
app.run()
It doesn't seem to matter which driver of alsa or openal I put first
in the list, with alsa first I got this error once, but not every
time:
E: thread-posix.c: Assertion 'pthread_setspecific(t->key, userdata) ==
0' failed at pulsecore/thread-posix.c:194, function pa_tls_set().
Aborting.
Aborted
I don't know if this is my system, pyglet, or even the two ogg files.
They are both compressed oggs, the problem can occur when either is
playing. Am I doing anything obviously wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---