[gstreamermm] AudioRate Plug-in: Regenerate extra defs to get properties.



commit ad9ec8d4e429fa607bd588d0dc841032251d0986
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Mon Mar 15 17:22:23 2010 -0400

    	AudioRate Plug-in: Regenerate extra defs to get properties.
    
    	* tools/extra_defs_gen/generate_defs_gst.cc:
    	* gstreamer/src/gst_signals.defs: Add audiorate plug-in to the extra
    	defs generation tool and regenerate signals defs file to get the
    	plug-in's properties.

 ChangeLog                                 |    9 +++
 gstreamer/src/gst_signals.defs            |   77 ++++++++++++++++++++++++++--
 tools/extra_defs_gen/generate_defs_gst.cc |    1 +
 3 files changed, 81 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2ef98e9..66eb32a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-03-15  José Alburquerque  <jaalburqu svn gnome org>
+
+	AudioRate Plug-in: Regenerate extra defs to get properties.
+
+	* tools/extra_defs_gen/generate_defs_gst.cc:
+	* gstreamer/src/gst_signals.defs: Add audiorate plug-in to the extra
+	defs generation tool and regenerate signals defs file to get the
+	plug-in's properties.
+
 2010-03-12  José Alburquerque  <jaalburqu svn gnome org>
 
 	Bump gstreamer requirement to 0.10.28.
diff --git a/gstreamer/src/gst_signals.defs b/gstreamer/src/gst_signals.defs
index 20ec9b0..88723d2 100644
--- a/gstreamer/src/gst_signals.defs
+++ b/gstreamer/src/gst_signals.defs
@@ -3838,19 +3838,19 @@
 
 ;; From GstStreamVolume
 
-(define-property volume
+(define-property mute
   (of-object "GstStreamVolume")
-  (prop-type "GParamDouble")
-  (docs "Linear volume factor, 1.0=100%")
+  (prop-type "GParamBoolean")
+  (docs "Mute the audio channel without changing the volume")
   (readable #t)
   (writable #t)
   (construct-only #f)
 )
 
-(define-property mute
+(define-property volume
   (of-object "GstStreamVolume")
-  (prop-type "GParamBoolean")
-  (docs "Mute the audio channel without changing the volume")
+  (prop-type "GParamDouble")
+  (docs "Linear volume factor, 1.0=100%")
   (readable #t)
   (writable #t)
   (construct-only #f)
@@ -4656,6 +4656,71 @@
   (construct-only #f)
 )
 
+;; From GstAudioRate
+
+(define-property name
+  (of-object "GstAudioRate")
+  (prop-type "GParamString")
+  (docs "The name of the object")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property in
+  (of-object "GstAudioRate")
+  (prop-type "GParamUInt64")
+  (docs "Number of input samples")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property out
+  (of-object "GstAudioRate")
+  (prop-type "GParamUInt64")
+  (docs "Number of output samples")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property add
+  (of-object "GstAudioRate")
+  (prop-type "GParamUInt64")
+  (docs "Number of added samples")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property drop
+  (of-object "GstAudioRate")
+  (prop-type "GParamUInt64")
+  (docs "Number of dropped samples")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property silent
+  (of-object "GstAudioRate")
+  (prop-type "GParamBoolean")
+  (docs "Don't emit notify for dropped and duplicated frames")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property tolerance
+  (of-object "GstAudioRate")
+  (prop-type "GParamUInt64")
+  (docs "Only act if timestamp jitter/imperfection exceeds indicated tolerance (ns)")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 ;; From GstAudioResample
 
 (define-property name
diff --git a/tools/extra_defs_gen/generate_defs_gst.cc b/tools/extra_defs_gen/generate_defs_gst.cc
index 92ce4c4..9297c39 100644
--- a/tools/extra_defs_gen/generate_defs_gst.cc
+++ b/tools/extra_defs_gen/generate_defs_gst.cc
@@ -183,6 +183,7 @@ int main (int argc, char *argv[])
             << get_plugin_defs("appsrc", gst_type_is_a_pointer)
             << get_plugin_defs("appsink", gst_type_is_a_pointer)
             << get_plugin_defs("audioconvert", gst_type_is_a_pointer)
+            << get_plugin_defs("audiorate", gst_type_is_a_pointer)
             << get_plugin_defs("audioresample", gst_type_is_a_pointer)
             << get_plugin_defs("audiotestsrc", gst_type_is_a_pointer)
             << get_plugin_defs("cdparanoiasrc", gst_type_is_a_pointer)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]