Commit b6866c55 authored by Edward Hervey's avatar Edward Hervey 🤘

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
parent 01f935c1
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>
* configure.ac:
......
......@@ -7,14 +7,16 @@
# Test case for the GstController on sinesrc -> alsasink
# Inspired from ensonic's examples/controller/audio-controller.c
import pygst
pygst.require('0.10')
import gst
import time
def main():
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")
pipeline.add_many(src, sink)
pipeline.add(src, sink)
src.link(sink)
control = gst.Controller(src, "freq", "volume")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment