00001
00002
00003 #ifndef _GSTREAMERMM_AUDIOSRC_H
00004 #define _GSTREAMERMM_AUDIOSRC_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
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
00037
00038
00039 namespace Gst
00040 { class AudioSrc_Class; }
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
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
00090
00091 public:
00092 virtual ~AudioSrc();
00093
00094 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00095 static GType get_type() G_GNUC_CONST;
00096
00097
00098 static GType get_base_type() G_GNUC_CONST;
00099 #endif
00100
00102 GstAudioSrc* gobj() { return reinterpret_cast<GstAudioSrc*>(gobject_); }
00103
00105 const GstAudioSrc* gobj() const { return reinterpret_cast<GstAudioSrc*>(gobject_); }
00106
00108 GstAudioSrc* gobj_copy();
00109
00110 private:
00111
00112
00113 public:
00114
00115
00116
00118
00119
00120
00121 #ifdef GLIBMM_VFUNCS_ENABLED
00122
00124 virtual bool prepare_vfunc(const Gst::RingBufferSpec& spec);
00125 #endif //GLIBMM_VFUNCS_ENABLED
00126
00127
00128
00129
00131
00132
00133
00134
00135
00136
00138
00139
00140
00141 #ifdef GLIBMM_VFUNCS_ENABLED
00142
00144 virtual guint read_vfunc(const void* data, guint length);
00145 #endif //GLIBMM_VFUNCS_ENABLED
00146
00149 #ifdef GLIBMM_VFUNCS_ENABLED
00150 virtual guint get_delay_vfunc();
00151 #endif //GLIBMM_VFUNCS_ENABLED
00152
00153
00156 #ifdef GLIBMM_VFUNCS_ENABLED
00157 virtual void reset_vfunc();
00158 #endif //GLIBMM_VFUNCS_ENABLED
00159
00160
00161 protected:
00162
00163
00164 public:
00165
00166 public:
00167
00168 #ifdef GLIBMM_VFUNCS_ENABLED
00169 #endif //GLIBMM_VFUNCS_ENABLED
00170
00171 protected:
00172
00173 #ifdef GLIBMM_VFUNCS_ENABLED
00174 #endif //GLIBMM_VFUNCS_ENABLED
00175
00176
00177 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00178 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00179
00180
00181 };
00182
00183 }
00184
00185
00186 namespace Glib
00187 {
00196 Glib::RefPtr<Gst::AudioSrc> wrap(GstAudioSrc* object, bool take_copy = false);
00197 }
00198
00199
00200 #endif
00201