mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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:
parent
01f935c116
commit
b6866c55bf
2 changed files with 9 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* 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")
|
||||
|
|
Loading…
Reference in a new issue