[gstreamermm: 3/167] fixed audiofilter class, still AudioInfo missing



commit a6044d1fdd4b74e732c85f564defe35e8d1c2912
Author: Marcin Kolny at Flytronic <marcin kolny flytronic pl>
Date:   Tue Jul 23 15:04:07 2013 +0200

    fixed audiofilter class, still AudioInfo missing

 gstreamer/src/audiofilter.ccg |   13 +++++++------
 gstreamer/src/audiofilter.hg  |    6 +++---
 2 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/gstreamer/src/audiofilter.ccg b/gstreamer/src/audiofilter.ccg
index 395c50b..cca8034 100644
--- a/gstreamer/src/audiofilter.ccg
+++ b/gstreamer/src/audiofilter.ccg
@@ -24,7 +24,7 @@ _PINCLUDE(gstreamermm/private/basetransform_p.h)
 namespace Gst
 {
 
-gboolean AudioFilter_Class::setup_vfunc_callback(GstAudioFilter* self, GstRingBufferSpec* format)
+gboolean AudioFilter_Class::setup_vfunc_callback(GstAudioFilter* self, GstAudioInfo* info)
 {
   Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
       Glib::ObjectBase::_get_current_wrapper((GObject*)self));
@@ -41,10 +41,11 @@ gboolean AudioFilter_Class::setup_vfunc_callback(GstAudioFilter* self, GstRingBu
     {
       try // Trap C++ exceptions which would normally be lost because this is a C callback.
       {
-        Gst::RingBufferSpec spec(*format);
+         // TODO
+        //Gst::AudioRingBufferSpec spec(*info);
 
         // Call the virtual member method, which derived classes might override.
-        return static_cast<int>(obj->setup_vfunc(spec));
+        //return static_cast<int>(obj->setup_vfunc(spec));
       }
       catch(...)
       {
@@ -59,20 +60,20 @@ gboolean AudioFilter_Class::setup_vfunc_callback(GstAudioFilter* self, GstRingBu
 
   // Call the original underlying C function:
   if(base && base->setup)
-    return (*base->setup)(self, format);
+    return (*base->setup)(self, info);
 
 
   typedef gboolean RType;
   return RType();
 }
-bool Gst::AudioFilter::setup_vfunc(Gst::RingBufferSpec& format)
+bool Gst::AudioFilter::setup_vfunc(Gst::AudioInfo& info)
 {
   BaseClassType *const base = static_cast<BaseClassType*>(
       g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class 
(The original underlying C class).
   );
 
   if(base && base->setup)
-    return static_cast<bool>((*base->setup)(gobj(), format.gobj()));
+    return static_cast<bool>((*base->setup)(gobj(), info.gobj()));
 
   typedef bool RType;
   return RType();
diff --git a/gstreamer/src/audiofilter.hg b/gstreamer/src/audiofilter.hg
index b63c871..36e5314 100644
--- a/gstreamer/src/audiofilter.hg
+++ b/gstreamer/src/audiofilter.hg
@@ -18,7 +18,7 @@
  */
 
 #include <gstreamermm/basetransform.h>
-#include <gstreamermm/ringbuffer.h>
+#include <gstreamermm/audioringbuffer.h>
 
 _DEFS(gstreamermm,gst)
 
@@ -48,14 +48,14 @@ class AudioFilter : public Gst::BaseTransform
 public:
   /** Virtual function, called whenever the format changes.
    */
-  virtual bool setup_vfunc(Gst::RingBufferSpec& format);
+  virtual bool setup_vfunc(Gst::AudioInfo& info);
 
 protected:
 #m4begin
   _PUSH(SECTION_PCC_CLASS_INIT_VFUNCS)
   klass->setup = &setup_vfunc_callback;
   _SECTION(SECTION_PH_VFUNCS)
-  static gboolean setup_vfunc_callback(GstAudioFilter* self, GstRingBufferSpec* format);
+  static gboolean setup_vfunc_callback(GstAudioFilter* self, GstAudioInfo* info);
   _POP()
 #m4end
 };


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