- Main Page
- Modules
- Namespaces
- Classes
- Files

# audiosrc.h

Go to the documentation of this file.

    00001 // -*- c++ -*-
    00002 // Generated by gtkmmproc -- DO NOT MODIFY!
    00003 #ifndef _GSTREAMERMM_AUDIOSRC_H
    00004 #define _GSTREAMERMM_AUDIOSRC_H
    00005
    00006
    00007 #include <glibmm.h>
    00008
    00009 /* gstreamermm - a C++ wrapper for gstreamer
    00010  *
    00011  * Copyright 2008 The gstreamermm Development Team
    00012  *
    00013  * This library is free software; you can redistribute it and/or
    00014  * modify it under the terms of the GNU Lesser General Public
    00015  * License as published by the Free Software Foundation; either
    00016  * version 2.1 of the License, or (at your option) any later version.
    00017  *
    00018  * This library is distributed in the hope that it will be useful,
    00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00021  * Lesser General Public License for more details.
    00022  *
    00023  * You should have received a copy of the GNU Lesser General Public
    00024  * License along with this library; if not, write to the Free
    00025  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    00026  */
    00027
    00028 #include <gst/audio/gstaudiosrc.h>
    00029 #include <gstreamermm/baseaudiosrc.h>
    00030 #include <gstreamermm/ringbuffer.h>
    00031
    00032
    00033 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00034 typedef struct _GstAudioSrc GstAudioSrc;
    00035 typedef struct _GstAudioSrcClass GstAudioSrcClass;
    00036 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00037
    00038
    00039 namespace Gst
    00040 { class AudioSrc_Class; } // namespace Gst
    00041 namespace Gst
    00042 {
    00043
    00066 class AudioSrc : public Gst::BaseAudioSrc
    00067 {
    00068
    00069 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00070
    00071 public:
    00072   typedef AudioSrc CppObjectType;
    00073   typedef AudioSrc_Class CppClassType;
    00074   typedef GstAudioSrc BaseObjectType;
    00075   typedef GstAudioSrcClass BaseClassType;
    00076
    00077 private:  friend class AudioSrc_Class;
    00078   static CppClassType audiosrc_class_;
    00079
    00080 private:
    00081   // noncopyable
    00082   AudioSrc(const AudioSrc&);
    00083   AudioSrc& operator=(const AudioSrc&);
    00084
    00085 protected:
    00086   explicit AudioSrc(const Glib::ConstructParams& construct_params);
    00087   explicit AudioSrc(GstAudioSrc* castitem);
    00088
    00089 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00090
    00091 public:
    00092   virtual ~AudioSrc();
    00093
    00094 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00095   static GType get_type()      G_GNUC_CONST;
    00096   static GType get_base_type() G_GNUC_CONST;
    00097 #endif
    00098
    00100   GstAudioSrc*       gobj()       { return reinterpret_cast<GstAudioSrc*>(gobject_); }
    00101
    00103   const GstAudioSrc* gobj() const { return reinterpret_cast<GstAudioSrc*>(gobject_); }
    00104
    00106   GstAudioSrc* gobj_copy();
    00107
    00108 private:
    00109
    00110
    00111 public:
    00112   //TODO: Some boolean vfuncs cause strange incorrect functionality when their
    00113   //callbacks return false with the last "return RType()" line.  Make sure this
    00114   //one doesn't cause problems and implement later.
    00116    //*/
    00117   //_WRAP_VFUNC(bool open(), "open")
    00118
    00119 #ifdef GLIBMM_VFUNCS_ENABLED
    00120
    00122   virtual bool prepare_vfunc(const Gst::RingBufferSpec& spec);
    00123 #endif //GLIBMM_VFUNCS_ENABLED
    00124
    00125   //TODO: Some boolean vfuncs cause strange incorrect functionality when their
    00126   //callbacks return false with the last "return RType()" line.  Make sure this
    00127   //one doesn't cause problems and implement later.
    00129    //*/
    00130   //_WRAP_VFUNC(bool unprepare(), "unprepare")
    00131
    00132   //TODO: Some boolean vfuncs cause strange incorrect functionality when their
    00133   //callbacks return false with the last "return RType()" line.  Make sure this
    00134   //one doesn't cause problems and implement later.
    00136    //*/
    00137   //_WRAP_VFUNC(bool close(), "close")
    00138
    00139  #ifdef GLIBMM_VFUNCS_ENABLED
    00140
    00142   virtual guint read_vfunc(const void* data, guint length);
    00143 #endif //GLIBMM_VFUNCS_ENABLED
    00144
    00147   #ifdef GLIBMM_VFUNCS_ENABLED
    00148   virtual guint get_delay_vfunc();
    00149 #endif //GLIBMM_VFUNCS_ENABLED
    00150
    00151
    00154   #ifdef GLIBMM_VFUNCS_ENABLED
    00155   virtual void reset_vfunc();
    00156 #endif //GLIBMM_VFUNCS_ENABLED
    00157
    00158
    00159 protected:
    00160
    00161
    00162 public:
    00163
    00164 public:
    00165   //C++ methods used to invoke GTK+ virtual functions:
    00166 #ifdef GLIBMM_VFUNCS_ENABLED
    00167 #endif //GLIBMM_VFUNCS_ENABLED
    00168
    00169 protected:
    00170   //GTK+ Virtual Functions (override these to change behaviour):
    00171 #ifdef GLIBMM_VFUNCS_ENABLED
    00172 #endif //GLIBMM_VFUNCS_ENABLED
    00173
    00174   //Default Signal Handlers::
    00175 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
    00176 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
    00177
    00178
    00179 };
    00180
    00181 } // namespace Gst
    00182
    00183
    00184 namespace Glib
    00185 {
    00194   Glib::RefPtr<Gst::AudioSrc> wrap(GstAudioSrc* object, bool take_copy = false);
    00195 }
    00196
    00197
    00198 #endif /* _GSTREAMERMM_AUDIOSRC_H */
    00199