[gstreamermm] AudioSink, AudioSrc: Wrap the virtual functions.



commit 0c92b0a090d3c59009a9d52402e314338f7202b7
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Thu Apr 28 18:47:57 2011 -0400

    AudioSink, AudioSrc: Wrap the virtual functions.
    
    	* gstreamer/src/audiosink.hg:
    	* gstreamer/src/audiosrc.hg: Wrap the virtual functions checking that
    	it doesn't break the examples.  The ogg_player_gtkmm uses the AlsaSink
    	plug-in which derives from the AudioSink class and the example runs
    	fine.  The virtual functions of the AudioSrc class are wrapped just
    	like the ones in the AudioSink class because they are parallel
    	classes.

 ChangeLog                  |   12 ++++++++++++
 gstreamer/src/audiosink.hg |   23 ++++++++++-------------
 gstreamer/src/audiosrc.hg  |   22 +++++++++-------------
 3 files changed, 31 insertions(+), 26 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 70ca045..968a618 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2011-04-28  José Alburquerque  <jaalburqu svn gnome org>
+
+	AudioSink, AudioSrc: Wrap the virtual functions.
+
+	* gstreamer/src/audiosink.hg:
+	* gstreamer/src/audiosrc.hg: Wrap the virtual functions checking that
+	it doesn't break the examples.  The ogg_player_gtkmm uses the AlsaSink
+	plug-in which derives from the AudioSink class and the example runs
+	fine.  The virtual functions of the AudioSrc class are wrapped just
+	like the ones in the AudioSink class because they are parallel
+	classes.
+
 0.10.9.1:
 
 2011-04-27  José Alburquerque  <jaalburqu svn gnome org>
diff --git a/gstreamer/src/audiosink.hg b/gstreamer/src/audiosink.hg
index 20257c5..6718b7c 100644
--- a/gstreamer/src/audiosink.hg
+++ b/gstreamer/src/audiosink.hg
@@ -52,25 +52,22 @@ class AudioSink : public Gst::BaseAudioSink
   _CLASS_GOBJECT(AudioSink, GstAudioSink, GST_AUDIO_SINK, Gst::BaseAudioSink, GstBaseAudioSink)
 
 public:
-  //TODO: Make sure this bool vfunc does not cause execution problems.
-  ///** vfunc to open the device. No configuration needs to be done at this
-   //* point. This function is also used to check if the device is available.
-   //*/
-  //_WRAP_VFUNC(bool open(), "open")
+  /** vfunc to open the device. No configuration needs to be done at this
+   * point. This function is also used to check if the device is available.
+   */
+  _WRAP_VFUNC(bool open(), "open")
 
   /** vfunc to prepare the device to operate with the specified parameters.
    */
   virtual bool prepare_vfunc(Gst::RingBufferSpec& spec);
 
-  //TODO: Make sure this bool vfunc does not cause execution problems.
-  ///** vfunc to undo operations done in prepare.
-   //*/
-  //_WRAP_VFUNC(bool unprepare(), "unprepare")
+  /** vfunc to undo operations done in prepare.
+   */
+  _WRAP_VFUNC(bool unprepare(), "unprepare")
 
-  //TODO: Make sure this bool vfunc does not cause execution problems.
-  ///** vfunc to close the device.
-   //*/
-  //_WRAP_VFUNC(bool close(), "close")
+  /** vfunc to close the device.
+   */
+  _WRAP_VFUNC(bool close(), "close")
 
   /** vfunc to write data to the device.
    */
diff --git a/gstreamer/src/audiosrc.hg b/gstreamer/src/audiosrc.hg
index 4d16cfb..8bf7ee6 100644
--- a/gstreamer/src/audiosrc.hg
+++ b/gstreamer/src/audiosrc.hg
@@ -52,25 +52,21 @@ class AudioSrc : public Gst::BaseAudioSrc
   _CLASS_GOBJECT(AudioSrc, GstAudioSrc, GST_AUDIO_SRC, Gst::BaseAudioSrc, GstBaseAudioSrc)
 
 public:
-  //TODO: Make sure this bool vfunc does not cause execution problems.
-  ///** vfunc to open the device.
-   //*/
-  //_WRAP_VFUNC(bool open(), "open")
+  /** vfunc to open the device.
+   */
+  _WRAP_VFUNC(bool open(), "open")
 
-  //TODO: Make sure this bool vfunc does not cause execution problems.
   /** vfunc to configure device with spec.
    */
   virtual bool prepare_vfunc(Gst::RingBufferSpec& spec);
 
-  //TODO: Make sure this bool vfunc does not cause execution problems.
-  ///** vfunc to undo the configuration.
-   //*/
-  //_WRAP_VFUNC(bool unprepare(), "unprepare")
+  /** vfunc to undo the configuration.
+   */
+  _WRAP_VFUNC(bool unprepare(), "unprepare")
 
-  //TODO: Make sure this bool vfunc does not cause execution problems.
-  ///** vfunc to close the device.
-   //*/
-  //_WRAP_VFUNC(bool close(), "close")
+  /** vfunc to close the device.
+   */
+  _WRAP_VFUNC(bool close(), "close")
 
   /** vfunc to read samples to the audio device.
    */



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