git.slaskete.net
/
python-gstreamer-examples
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added alt. glade file, changed frequency, use alt. glade file
[python-gstreamer-examples]
/
example2.py
diff --git
a/example2.py
b/example2.py
index 21d4dbb9517917caef3a234aca3488bb8fd0b820..90b846337a1ea2f82ce64a73098d54f5a876376d 100755
(executable)
--- a/
example2.py
+++ b/
example2.py
@@
-15,7
+15,7
@@
class Main:
# Create gui bits and bobs
self.wTree = Gtk.Builder()
# Create gui bits and bobs
self.wTree = Gtk.Builder()
- self.wTree.add_from_file("example2.glade")
+ self.wTree.add_from_file("example2
_2
.glade")
signals = {
"on_play_clicked" : self.OnPlay,
signals = {
"on_play_clicked" : self.OnPlay,
@@
-33,7
+33,7
@@
class Main:
# Add an audiotestsrc element to the pipeline
self.audiotestsrc = Gst.ElementFactory.make("audiotestsrc", "audio")
# Add an audiotestsrc element to the pipeline
self.audiotestsrc = Gst.ElementFactory.make("audiotestsrc", "audio")
- self.audiotestsrc.set_property("freq",
2
00)
+ self.audiotestsrc.set_property("freq",
8
00)
self.pipeline.add(self.audiotestsrc)
# Add a pulsesink element to the pipeline
self.pipeline.add(self.audiotestsrc)
# Add a pulsesink element to the pipeline