AudioCollector in python bindings

This commit is contained in:
Jaromil
2009-07-24 14:24:35 +02:00
parent e3d0b80584
commit bf8268b517
3 changed files with 9 additions and 4 deletions

View File

@@ -87,6 +87,8 @@ class RSSPlaylist(object):
self.callback = NextVideoCB()
self.audio = freej.AudioCollector('freej', 1024, 44100);
while (not self.cx.quit):
for file in self.rsssucker.list:
@@ -98,7 +100,10 @@ class RSSPlaylist(object):
self.lay.add_eos_call(self.callback)
self.lay.start()
self.cx.add_layer(self.lay)
self.scr.add_layer(self.lay)
self.scr.add_audio( self.audio.Jack )
while(not end_of_video): time.sleep(5)
print "end of video"
self.lay.quit = True