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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to