how to play a sound file repeatedly in loop

varnikat t varnikat22 at gmail.com
Sat May 8 02:54:57 EDT 2010


How to run sound file repeatedly in loop ?

When I do this, it does nothing and terminates:

import pygst
pygst.require("0.10")
import gst, gtk


n=0

while n<10:
    player = gst.element_factory_make("playbin2", "player")
    player.set_property("uri", "file:/home/varnika/hello.ogg")
    player.set_state(gst.STATE_PLAYING)
    n=n+1

Regards
Varnika Tewari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100508/8dc4e857/attachment.html>


More information about the Python-list mailing list