[gstreamermm] Wrapped Gst::BaseAudioSrc vfuncs.
- From: José Alburquerque <jaalburqu src gnome org>
- To: svn-commits-list gnome org
- Subject: [gstreamermm] Wrapped Gst::BaseAudioSrc vfuncs.
- Date: Sun, 10 May 2009 23:19:45 -0400 (EDT)
commit 77bd7898cde36099abf6f132d778cbdb47d4f32e
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Sun May 10 23:19:09 2009 -0400
Wrapped Gst::BaseAudioSrc vfuncs.
---
ChangeLog | 8 ++++++++
gstreamer/src/baseaudiosrc.ccg | 1 +
gstreamer/src/baseaudiosrc.hg | 9 +++++++--
gstreamer/src/bus.hg | 1 +
gstreamer/src/gst_vfuncs.defs | 7 +++++++
5 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 41d8bc1..fa43091 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2009-05-10 José Alburquerque <jaalburqu svn gnome org>
+ * gstreamer/src/baseaudiosrc.ccg:
+ * gstreamer/src/baseaudiosrc.hg:
+ * gstreamer/src/gst_vfuncs.defs: Wrapped Gst::BaseAudioSrc vfuncs.
+
+ * gstreamer/src/bus.hg: Typo.
+
+2009-05-10 José Alburquerque <jaalburqu svn gnome org>
+
* gstreamer/src/element.ccg:
* gstreamer/src/element.hg: Completed some TODO's. Corrected param
names in methods to match the generated Doxygen docs. Renamed
diff --git a/gstreamer/src/baseaudiosrc.ccg b/gstreamer/src/baseaudiosrc.ccg
index 886d8be..c79c025 100644
--- a/gstreamer/src/baseaudiosrc.ccg
+++ b/gstreamer/src/baseaudiosrc.ccg
@@ -18,4 +18,5 @@
*/
#include <gst/audio/gstbaseaudiosrc.h>
+#include <gstreamermm/ringbuffer.h>
_PINCLUDE(gstreamermm/private/pushsrc_p.h)
diff --git a/gstreamer/src/baseaudiosrc.hg b/gstreamer/src/baseaudiosrc.hg
index 93fab71..1573e6f 100644
--- a/gstreamer/src/baseaudiosrc.hg
+++ b/gstreamer/src/baseaudiosrc.hg
@@ -17,6 +17,7 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <gst/audio/gstringbuffer.h>
#include <gstreamermm/pushsrc.h>
_DEFS(gstreamermm,gst)
@@ -24,6 +25,8 @@ _DEFS(gstreamermm,gst)
namespace Gst
{
+class RingBuffer;
+
_WRAP_ENUM(BaseAudioSrcSlaveMethod, GstBaseAudioSrcSlaveMethod)
/** Gst::BaseAudioSrc - Base class for audio sources.
@@ -44,7 +47,7 @@ public:
*/
_MEMBER_GET(clock, clock, Glib::RefPtr<Gst::Clock>, GstClock*)
- //TODO: _WRAP_METHOD(Glib::RefPtr<Gst::RingBuffer> create_ring_buffer(), gst_base_audio_src_create_ringbuffer)
+ _WRAP_METHOD(Glib::RefPtr<Gst::RingBuffer> create_ring_buffer(), gst_base_audio_src_create_ringbuffer)
_WRAP_METHOD(void set_provide_clock(bool provide), gst_base_audio_src_set_provide_clock)
_WRAP_METHOD(bool get_provide_clock() const, gst_base_audio_src_get_provide_clock)
@@ -57,7 +60,9 @@ public:
_WRAP_PROPERTY("slave-method", BaseAudioSrcSlaveMethod)
- //TODO: Wrap vfuncs.
+ /** vfunc to create and return a Gst::RingBuffer to read from.
+ */
+ _WRAP_VFUNC(Glib::RefPtr<Gst::RingBuffer> create_ring_buffer(), "create_ringbuffer")
};
} // namespace Gst
diff --git a/gstreamer/src/bus.hg b/gstreamer/src/bus.hg
index 56e5787..a715363 100644
--- a/gstreamer/src/bus.hg
+++ b/gstreamer/src/bus.hg
@@ -53,6 +53,7 @@ _WRAP_ENUM(BusSyncReply, GstBusSyncReply)
* possible to handle the delivery in the glib mainloop.
*
* TODO: Correct C API reference in following paragraph:
+ *
* The GSource callback function gst_bus_async_signal_func() can be used to
* convert all bus messages into signal emissions.
*
diff --git a/gstreamer/src/gst_vfuncs.defs b/gstreamer/src/gst_vfuncs.defs
index f04a637..57fd174 100644
--- a/gstreamer/src/gst_vfuncs.defs
+++ b/gstreamer/src/gst_vfuncs.defs
@@ -701,6 +701,13 @@
(return-type "GstRingBuffer*")
)
+; GstBaseAudioSrc
+
+(define-vfunc create_ringbuffer
+ (of-object "GstBaseAudioSrc")
+ (return-type "GstRingBuffer*")
+)
+
; GstColorBalance
(define-vfunc list_channels
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]