#!/usr/bin/python

from time import sleep
import pygst; pygst.require ("0.10")
import gst

p = gst.parse_launch ("audiotestsrc ! pulsesink")

p.set_state (gst.STATE_PLAYING)
sleep (1)
p.set_state (gst.STATE_NULL)

p.set_state (gst.STATE_PLAYING)
sleep (10)

