search for: play_as_thread

Displaying 1 result from an estimated 1 matches for "play_as_thread".

2002 Nov 03
0
python bindings and ao lockup
...p has one or two threads running, the lockups only occure at one point, here is the code run as a thread def play(self): self.playing = TRUE self.output = [] self.lastplay = time.time() args = self.song_file, self.output retval = thread.start_new_thread(self.play_as_thread, args) <p>def play_as_thread(self, song_file, output): print self.get_name() + " started" vf = ogg.vorbis.VorbisFile(song_file) print "Vorbis File Object Created" dev = ao.AudioDevice(ao.driver_id('esd')) print "Enterin...