| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | #ifndef _GSTREAMERMM_AUDIOTESTSRC_H |
| 3 | #define _GSTREAMERMM_AUDIOTESTSRC_H |
| 4 | |
| 5 | #include <gstreamermmconfig.h> |
| 6 | |
| 7 | #ifndef GSTREAMERMM_DISABLE_DEPRECATED |
| 8 | |
| 9 | |
| 10 | #include <glibmm/ustring.h> |
| 11 | #include <sigc++/sigc++.h> |
| 12 | |
| 13 | // Generated by generate_plugin_gmmproc_file. Don't edit this file. |
| 14 | |
| 15 | |
| 16 | #include <gstreamermm/basesrc.h> |
| 17 | |
| 18 | |
| 19 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 20 | using GstAudioTestSrc = struct _GstAudioTestSrc; |
| 21 | using GstAudioTestSrcClass = struct _GstAudioTestSrcClass; |
| 22 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 23 | |
| 24 | |
| 25 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 26 | namespace Gst |
| 27 | { class AudioTestSrc_Class; } // namespace Gst |
| 28 | #endif //DOXYGEN_SHOULD_SKIP_THIS |
| 29 | |
| 30 | namespace Gst |
| 31 | { |
| 32 | |
| 33 | /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */ |
| 34 | |
| 35 | /** |
| 36 | * |
| 37 | * @ingroup gstreamermmEnums |
| 38 | */ |
| 39 | enum AudioTestSrcWave |
| 40 | { |
| 41 | AUDIO_TEST_SRC_WAVE_SINE, |
| 42 | AUDIO_TEST_SRC_WAVE_SQUARE, |
| 43 | AUDIO_TEST_SRC_WAVE_SAW, |
| 44 | AUDIO_TEST_SRC_WAVE_TRIANGLE, |
| 45 | AUDIO_TEST_SRC_WAVE_SILENCE, |
| 46 | AUDIO_TEST_SRC_WAVE_WHITE_NOISE, |
| 47 | AUDIO_TEST_SRC_WAVE_PINK_NOISE, |
| 48 | AUDIO_TEST_SRC_WAVE_SINE_TAB, |
| 49 | AUDIO_TEST_SRC_WAVE_TICKS, |
| 50 | AUDIO_TEST_SRC_WAVE_GAUSSIAN_WHITE_NOISE, |
| 51 | AUDIO_TEST_SRC_WAVE_RED_NOISE, |
| 52 | AUDIO_TEST_SRC_WAVE_BLUE_NOISE, |
| 53 | AUDIO_TEST_SRC_WAVE_VIOLET_NOISE |
| 54 | }; |
| 55 | |
| 56 | } // namespace Gst |
| 57 | |
| 58 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 59 | namespace Glib |
| 60 | { |
| 61 | |
| 62 | template <> |
| 63 | class Value<Gst::AudioTestSrcWave> : public Glib::Value_Enum<Gst::AudioTestSrcWave> |
| 64 | { |
| 65 | public: |
| 66 | static GType value_type() G_GNUC_CONST; |
| 67 | }; |
| 68 | |
| 69 | } // namespace Glib |
| 70 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 71 | |
| 72 | namespace Gst |
| 73 | { |
| 74 | |
| 75 | |
| 76 | /** A Wrapper for the audiotestsrc plugin. |
| 77 | * Please note that not all plug-ins are available on all systems so care |
| 78 | * must be taken that they exist before they are used otherwise there will |
| 79 | * be errors and possibly a crash. |
| 80 | * |
| 81 | * @ingroup GstPlugins |
| 82 | * @deprecated Plugins API is deprecated, and should not be used in a new code. |
| 83 | */ |
| 84 | |
| 85 | class AudioTestSrc |
| 86 | : public Gst::BaseSrc |
| 87 | { |
| 88 | |
| 89 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 90 | |
| 91 | public: |
| 92 | using CppObjectType = AudioTestSrc; |
| 93 | using CppClassType = AudioTestSrc_Class; |
| 94 | using BaseObjectType = GstAudioTestSrc; |
| 95 | using BaseClassType = GstAudioTestSrcClass; |
| 96 | |
| 97 | // noncopyable |
| 98 | AudioTestSrc(const AudioTestSrc&) = delete; |
| 99 | AudioTestSrc& operator=(const AudioTestSrc&) = delete; |
| 100 | |
| 101 | private: friend class AudioTestSrc_Class; |
| 102 | static CppClassType audiotestsrc_class_; |
| 103 | |
| 104 | protected: |
| 105 | explicit AudioTestSrc(const Glib::ConstructParams& construct_params); |
| 106 | explicit AudioTestSrc(GstAudioTestSrc* castitem); |
| 107 | |
| 108 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 109 | |
| 110 | public: |
| 111 | |
| 112 | AudioTestSrc(AudioTestSrc&& src) noexcept; |
| 113 | AudioTestSrc& operator=(AudioTestSrc&& src) noexcept; |
| 114 | |
| 115 | ~AudioTestSrc() noexcept override; |
| 116 | |
| 117 | /** Get the GType for this class, for use with the underlying GObject type system. |
| 118 | */ |
| 119 | static GType get_type() G_GNUC_CONST; |
| 120 | |
| 121 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 122 | |
| 123 | |
| 124 | static GType get_base_type() G_GNUC_CONST; |
| 125 | #endif |
| 126 | |
| 127 | ///Provides access to the underlying C GObject. |
| 128 | GstAudioTestSrc* gobj() { return reinterpret_cast<GstAudioTestSrc*>(gobject_); } |
| 129 | |
| 130 | ///Provides access to the underlying C GObject. |
| 131 | const GstAudioTestSrc* gobj() const { return reinterpret_cast<GstAudioTestSrc*>(gobject_); } |
| 132 | |
| 133 | ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. |
| 134 | GstAudioTestSrc* gobj_copy(); |
| 135 | |
| 136 | private: |
| 137 | |
| 138 | |
| 139 | protected: |
| 140 | AudioTestSrc(); |
| 141 | explicit AudioTestSrc(const Glib::ustring& name); |
| 142 | |
| 143 | public: |
| 144 | /** Creates a new audiotestsrc plugin with a unique name. |
| 145 | */ |
| 146 | |
| 147 | static Glib::RefPtr<AudioTestSrc> create(); |
| 148 | |
| 149 | |
| 150 | /** Creates a new audiotestsrc plugin with the given name. |
| 151 | */ |
| 152 | |
| 153 | static Glib::RefPtr<AudioTestSrc> create(const Glib::ustring& name); |
| 154 | |
| 155 | |
| 156 | /** Number of samples in each outgoing buffer. |
| 157 | * |
| 158 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 159 | * or receive notification when the value of the property changes. |
| 160 | */ |
| 161 | Glib::PropertyProxy< int > property_samplesperbuffer() ; |
| 162 | |
| 163 | /** Number of samples in each outgoing buffer. |
| 164 | * |
| 165 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 166 | * or receive notification when the value of the property changes. |
| 167 | */ |
| 168 | Glib::PropertyProxy_ReadOnly< int > property_samplesperbuffer() const; |
| 169 | |
| 170 | /** Oscillator waveform. |
| 171 | * |
| 172 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 173 | * or receive notification when the value of the property changes. |
| 174 | */ |
| 175 | Glib::PropertyProxy< Gst::AudioTestSrcWave > property_wave() ; |
| 176 | |
| 177 | /** Oscillator waveform. |
| 178 | * |
| 179 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 180 | * or receive notification when the value of the property changes. |
| 181 | */ |
| 182 | Glib::PropertyProxy_ReadOnly< Gst::AudioTestSrcWave > property_wave() const; |
| 183 | |
| 184 | /** Frequency of test signal. The sample rate needs to be at least 4 times higher. |
| 185 | * |
| 186 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 187 | * or receive notification when the value of the property changes. |
| 188 | */ |
| 189 | Glib::PropertyProxy< double > property_freq() ; |
| 190 | |
| 191 | /** Frequency of test signal. The sample rate needs to be at least 4 times higher. |
| 192 | * |
| 193 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 194 | * or receive notification when the value of the property changes. |
| 195 | */ |
| 196 | Glib::PropertyProxy_ReadOnly< double > property_freq() const; |
| 197 | |
| 198 | /** Volume of test signal. |
| 199 | * |
| 200 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 201 | * or receive notification when the value of the property changes. |
| 202 | */ |
| 203 | Glib::PropertyProxy< double > property_volume() ; |
| 204 | |
| 205 | /** Volume of test signal. |
| 206 | * |
| 207 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 208 | * or receive notification when the value of the property changes. |
| 209 | */ |
| 210 | Glib::PropertyProxy_ReadOnly< double > property_volume() const; |
| 211 | |
| 212 | /** Whether to act as a live source. |
| 213 | * |
| 214 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 215 | * or receive notification when the value of the property changes. |
| 216 | */ |
| 217 | Glib::PropertyProxy< bool > property_is_live() ; |
| 218 | |
| 219 | /** Whether to act as a live source. |
| 220 | * |
| 221 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 222 | * or receive notification when the value of the property changes. |
| 223 | */ |
| 224 | Glib::PropertyProxy_ReadOnly< bool > property_is_live() const; |
| 225 | |
| 226 | /** An offset added to timestamps set on buffers (in ns). |
| 227 | * |
| 228 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 229 | * or receive notification when the value of the property changes. |
| 230 | */ |
| 231 | Glib::PropertyProxy< gint64 > property_timestamp_offset() ; |
| 232 | |
| 233 | /** An offset added to timestamps set on buffers (in ns). |
| 234 | * |
| 235 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 236 | * or receive notification when the value of the property changes. |
| 237 | */ |
| 238 | Glib::PropertyProxy_ReadOnly< gint64 > property_timestamp_offset() const; |
| 239 | |
| 240 | /** Can activate in push mode. |
| 241 | * |
| 242 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 243 | * or receive notification when the value of the property changes. |
| 244 | */ |
| 245 | Glib::PropertyProxy< bool > property_can_activate_push() ; |
| 246 | |
| 247 | /** Can activate in push mode. |
| 248 | * |
| 249 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 250 | * or receive notification when the value of the property changes. |
| 251 | */ |
| 252 | Glib::PropertyProxy_ReadOnly< bool > property_can_activate_push() const; |
| 253 | |
| 254 | /** Can activate in pull mode. |
| 255 | * |
| 256 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 257 | * or receive notification when the value of the property changes. |
| 258 | */ |
| 259 | Glib::PropertyProxy< bool > property_can_activate_pull() ; |
| 260 | |
| 261 | /** Can activate in pull mode. |
| 262 | * |
| 263 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 264 | * or receive notification when the value of the property changes. |
| 265 | */ |
| 266 | Glib::PropertyProxy_ReadOnly< bool > property_can_activate_pull() const; |
| 267 | |
| 268 | |
| 269 | public: |
| 270 | |
| 271 | public: |
| 272 | //C++ methods used to invoke GTK+ virtual functions: |
| 273 | |
| 274 | protected: |
| 275 | //GTK+ Virtual Functions (override these to change behaviour): |
| 276 | |
| 277 | //Default Signal Handlers:: |
| 278 | |
| 279 | |
| 280 | }; |
| 281 | |
| 282 | } // namespace Gst |
| 283 | |
| 284 | |
| 285 | namespace Glib |
| 286 | { |
| 287 | /** A Glib::wrap() method for this object. |
| 288 | * |
| 289 | * @param object The C instance. |
| 290 | * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
| 291 | * @result A C++ instance that wraps this C instance. |
| 292 | * |
| 293 | * @relates Gst::AudioTestSrc |
| 294 | */ |
| 295 | Glib::RefPtr<Gst::AudioTestSrc> wrap(GstAudioTestSrc* object, bool take_copy = false); |
| 296 | } |
| 297 | |
| 298 | |
| 299 | #endif // GSTREAMERMM_DISABLE_DEPRECATED |
| 300 | |
| 301 | |
| 302 | #endif /* _GSTREAMERMM_AUDIOTESTSRC_H */ |
| 303 |