00001
00002
00003 #ifndef _GSTREAMERMM_AUDIOSINK_H
00004 #define _GSTREAMERMM_AUDIOSINK_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/gstaudiosink.h>
00029 #include <gstreamermm/baseaudiosink.h>
00030 #include <gstreamermm/ringbuffer.h>
00031
00032
00033 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00034 typedef struct _GstAudioSink GstAudioSink;
00035 typedef struct _GstAudioSinkClass GstAudioSinkClass;
00036 #endif
00037
00038
00039 namespace Gst
00040 { class AudioSink_Class; }
00041 namespace Gst
00042 {
00043
00066 class AudioSink : public Gst::BaseAudioSink
00067 {
00068
00069 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00070
00071 public:
00072 typedef AudioSink CppObjectType;
00073 typedef AudioSink_Class CppClassType;
00074 typedef GstAudioSink BaseObjectType;
00075 typedef GstAudioSinkClass BaseClassType;
00076
00077 private: friend class AudioSink_Class;
00078 static CppClassType audiosink_class_;
00079
00080 private:
00081
00082 AudioSink(const AudioSink&);
00083 AudioSink& operator=(const AudioSink&);
00084
00085 protected:
00086 explicit AudioSink(const Glib::ConstructParams& construct_params);
00087 explicit AudioSink(GstAudioSink* castitem);
00088
00089 #endif
00090
00091 public:
00092 virtual ~AudioSink();
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 GstAudioSink* gobj() { return reinterpret_cast<GstAudioSink*>(gobject_); }
00101
00103 const GstAudioSink* gobj() const { return reinterpret_cast<GstAudioSink*>(gobject_); }
00104
00106 GstAudioSink* gobj_copy();
00107
00108 private:
00109
00110
00111 public:
00112
00113
00114
00116
00117
00118
00119
00120 #ifdef GLIBMM_VFUNCS_ENABLED
00121
00123 virtual bool prepare_vfunc(const Gst::RingBufferSpec& spec);
00124 #endif //GLIBMM_VFUNCS_ENABLED
00125
00126
00127
00128
00130
00131
00132
00133
00134
00135
00137
00138
00139
00140 #ifdef GLIBMM_VFUNCS_ENABLED
00141
00143 virtual guint write_vfunc(const void* data, guint length);
00144 #endif //GLIBMM_VFUNCS_ENABLED
00145
00149 #ifdef GLIBMM_VFUNCS_ENABLED
00150 virtual guint get_delay_vfunc();
00151 #endif //GLIBMM_VFUNCS_ENABLED
00152
00153
00157 #ifdef GLIBMM_VFUNCS_ENABLED
00158 virtual void reset_vfunc();
00159 #endif //GLIBMM_VFUNCS_ENABLED
00160
00161
00162 protected:
00163
00164
00165 public:
00166
00167 public:
00168
00169 #ifdef GLIBMM_VFUNCS_ENABLED
00170 #endif //GLIBMM_VFUNCS_ENABLED
00171
00172 protected:
00173
00174 #ifdef GLIBMM_VFUNCS_ENABLED
00175 #endif //GLIBMM_VFUNCS_ENABLED
00176
00177
00178 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00179 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00180
00181
00182 };
00183
00184 }
00185
00186
00187 namespace Glib
00188 {
00197 Glib::RefPtr<Gst::AudioSink> wrap(GstAudioSink* object, bool take_copy = false);
00198 }
00199
00200
00201 #endif
00202