examples/audio-controller.py: Make it work with 0.10, still had cruft from 0.9

Original commit message from CVS:
* examples/audio-controller.py:
Make it work with 0.10, still had cruft from 0.9
This commit is contained in:
Edward Hervey 2006-05-27 12:08:08 +00:00
parent 01f935c116
commit b6866c55bf
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-05-27 Edward Hervey <edward@fluendo.com>
* examples/audio-controller.py:
Make it work with 0.10, still had cruft from 0.9
2006-05-19 Edward Hervey <edward@fluendo.com> 2006-05-19 Edward Hervey <edward@fluendo.com>
* configure.ac: * configure.ac:

View file

@ -7,14 +7,16 @@
# Test case for the GstController on sinesrc -> alsasink # Test case for the GstController on sinesrc -> alsasink
# Inspired from ensonic's examples/controller/audio-controller.c # Inspired from ensonic's examples/controller/audio-controller.c
import pygst
pygst.require('0.10')
import gst import gst
import time import time
def main(): def main():
pipeline = gst.Pipeline("audiocontroller") pipeline = gst.Pipeline("audiocontroller")
src = gst.element_factory_make("sinesrc", "src") src = gst.element_factory_make("audiotestsrc", "src")
sink = gst.element_factory_make("alsasink", "sink") sink = gst.element_factory_make("alsasink", "sink")
pipeline.add_many(src, sink) pipeline.add(src, sink)
src.link(sink) src.link(sink)
control = gst.Controller(src, "freq", "volume") control = gst.Controller(src, "freq", "volume")