| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | #ifndef _GSTREAMERMM_AUDIOCONVERT_H |
| 3 | #define _GSTREAMERMM_AUDIOCONVERT_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/basetransform.h> |
| 17 | |
| 18 | |
| 19 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 20 | using GstAudioConvert = struct _GstAudioConvert; |
| 21 | using GstAudioConvertClass = struct _GstAudioConvertClass; |
| 22 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 23 | |
| 24 | |
| 25 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 26 | namespace Gst |
| 27 | { class AudioConvert_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 | * @var AudioDitherMethod AUDIO_DITHER_NONE |
| 37 | * No dithering. |
| 38 | * |
| 39 | * @var AudioDitherMethod AUDIO_DITHER_RPDF |
| 40 | * Rectangular dithering. |
| 41 | * |
| 42 | * @var AudioDitherMethod AUDIO_DITHER_TPDF |
| 43 | * Triangular dithering (default). |
| 44 | * |
| 45 | * @var AudioDitherMethod AUDIO_DITHER_TPDF_HF |
| 46 | * High frequency triangular dithering. |
| 47 | * |
| 48 | * @enum AudioDitherMethod |
| 49 | * |
| 50 | * Set of available dithering methods. |
| 51 | * |
| 52 | * @ingroup gstreamermmEnums |
| 53 | */ |
| 54 | enum AudioDitherMethod |
| 55 | { |
| 56 | AUDIO_DITHER_NONE, |
| 57 | AUDIO_DITHER_RPDF, |
| 58 | AUDIO_DITHER_TPDF, |
| 59 | AUDIO_DITHER_TPDF_HF |
| 60 | }; |
| 61 | |
| 62 | } // namespace Gst |
| 63 | |
| 64 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 65 | namespace Glib |
| 66 | { |
| 67 | |
| 68 | template <> |
| 69 | class Value<Gst::AudioDitherMethod> : public Glib::Value_Enum<Gst::AudioDitherMethod> |
| 70 | { |
| 71 | public: |
| 72 | static GType value_type() G_GNUC_CONST; |
| 73 | }; |
| 74 | |
| 75 | } // namespace Glib |
| 76 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 77 | |
| 78 | namespace Gst |
| 79 | { |
| 80 | |
| 81 | |
| 82 | /** |
| 83 | * @var AudioNoiseShapingMethod AUDIO_NOISE_SHAPING_NONE |
| 84 | * No noise shaping (default). |
| 85 | * |
| 86 | * @var AudioNoiseShapingMethod AUDIO_NOISE_SHAPING_ERROR_FEEDBACK |
| 87 | * Error feedback. |
| 88 | * |
| 89 | * @var AudioNoiseShapingMethod AUDIO_NOISE_SHAPING_SIMPLE |
| 90 | * Simple 2-pole noise shaping. |
| 91 | * |
| 92 | * @var AudioNoiseShapingMethod AUDIO_NOISE_SHAPING_MEDIUM |
| 93 | * Medium 5-pole noise shaping. |
| 94 | * |
| 95 | * @var AudioNoiseShapingMethod AUDIO_NOISE_SHAPING_HIGH |
| 96 | * High 8-pole noise shaping. |
| 97 | * |
| 98 | * @enum AudioNoiseShapingMethod |
| 99 | * |
| 100 | * Set of available noise shaping methods |
| 101 | * |
| 102 | * @ingroup gstreamermmEnums |
| 103 | */ |
| 104 | enum AudioNoiseShapingMethod |
| 105 | { |
| 106 | AUDIO_NOISE_SHAPING_NONE, |
| 107 | AUDIO_NOISE_SHAPING_ERROR_FEEDBACK, |
| 108 | AUDIO_NOISE_SHAPING_SIMPLE, |
| 109 | AUDIO_NOISE_SHAPING_MEDIUM, |
| 110 | AUDIO_NOISE_SHAPING_HIGH |
| 111 | }; |
| 112 | |
| 113 | } // namespace Gst |
| 114 | |
| 115 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 116 | namespace Glib |
| 117 | { |
| 118 | |
| 119 | template <> |
| 120 | class Value<Gst::AudioNoiseShapingMethod> : public Glib::Value_Enum<Gst::AudioNoiseShapingMethod> |
| 121 | { |
| 122 | public: |
| 123 | static GType value_type() G_GNUC_CONST; |
| 124 | }; |
| 125 | |
| 126 | } // namespace Glib |
| 127 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 128 | |
| 129 | namespace Gst |
| 130 | { |
| 131 | |
| 132 | |
| 133 | /** A Wrapper for the audioconvert plugin. |
| 134 | * Please note that not all plug-ins are available on all systems so care |
| 135 | * must be taken that they exist before they are used otherwise there will |
| 136 | * be errors and possibly a crash. |
| 137 | * |
| 138 | * @ingroup GstPlugins |
| 139 | * @deprecated Plugins API is deprecated, and should not be used in a new code. |
| 140 | */ |
| 141 | |
| 142 | class AudioConvert |
| 143 | : public Gst::BaseTransform |
| 144 | { |
| 145 | |
| 146 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 147 | |
| 148 | public: |
| 149 | using CppObjectType = AudioConvert; |
| 150 | using CppClassType = AudioConvert_Class; |
| 151 | using BaseObjectType = GstAudioConvert; |
| 152 | using BaseClassType = GstAudioConvertClass; |
| 153 | |
| 154 | // noncopyable |
| 155 | AudioConvert(const AudioConvert&) = delete; |
| 156 | AudioConvert& operator=(const AudioConvert&) = delete; |
| 157 | |
| 158 | private: friend class AudioConvert_Class; |
| 159 | static CppClassType audioconvert_class_; |
| 160 | |
| 161 | protected: |
| 162 | explicit AudioConvert(const Glib::ConstructParams& construct_params); |
| 163 | explicit AudioConvert(GstAudioConvert* castitem); |
| 164 | |
| 165 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 166 | |
| 167 | public: |
| 168 | |
| 169 | AudioConvert(AudioConvert&& src) noexcept; |
| 170 | AudioConvert& operator=(AudioConvert&& src) noexcept; |
| 171 | |
| 172 | ~AudioConvert() noexcept override; |
| 173 | |
| 174 | /** Get the GType for this class, for use with the underlying GObject type system. |
| 175 | */ |
| 176 | static GType get_type() G_GNUC_CONST; |
| 177 | |
| 178 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 179 | |
| 180 | |
| 181 | static GType get_base_type() G_GNUC_CONST; |
| 182 | #endif |
| 183 | |
| 184 | ///Provides access to the underlying C GObject. |
| 185 | GstAudioConvert* gobj() { return reinterpret_cast<GstAudioConvert*>(gobject_); } |
| 186 | |
| 187 | ///Provides access to the underlying C GObject. |
| 188 | const GstAudioConvert* gobj() const { return reinterpret_cast<GstAudioConvert*>(gobject_); } |
| 189 | |
| 190 | ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. |
| 191 | GstAudioConvert* gobj_copy(); |
| 192 | |
| 193 | private: |
| 194 | |
| 195 | |
| 196 | protected: |
| 197 | AudioConvert(); |
| 198 | explicit AudioConvert(const Glib::ustring& name); |
| 199 | |
| 200 | public: |
| 201 | /** Creates a new audioconvert plugin with a unique name. |
| 202 | */ |
| 203 | |
| 204 | static Glib::RefPtr<AudioConvert> create(); |
| 205 | |
| 206 | |
| 207 | /** Creates a new audioconvert plugin with the given name. |
| 208 | */ |
| 209 | |
| 210 | static Glib::RefPtr<AudioConvert> create(const Glib::ustring& name); |
| 211 | |
| 212 | |
| 213 | /** Selects between different dithering methods. |
| 214 | * |
| 215 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 216 | * or receive notification when the value of the property changes. |
| 217 | */ |
| 218 | Glib::PropertyProxy< Gst::AudioDitherMethod > property_dithering() ; |
| 219 | |
| 220 | /** Selects between different dithering methods. |
| 221 | * |
| 222 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 223 | * or receive notification when the value of the property changes. |
| 224 | */ |
| 225 | Glib::PropertyProxy_ReadOnly< Gst::AudioDitherMethod > property_dithering() const; |
| 226 | |
| 227 | /** Selects between different noise shaping methods. |
| 228 | * |
| 229 | * @return A PropertyProxy that allows you to get or set the value of the property, |
| 230 | * or receive notification when the value of the property changes. |
| 231 | */ |
| 232 | Glib::PropertyProxy< Gst::AudioNoiseShapingMethod > property_noise_shaping() ; |
| 233 | |
| 234 | /** Selects between different noise shaping methods. |
| 235 | * |
| 236 | * @return A PropertyProxy_ReadOnly that allows you to get the value of the property, |
| 237 | * or receive notification when the value of the property changes. |
| 238 | */ |
| 239 | Glib::PropertyProxy_ReadOnly< Gst::AudioNoiseShapingMethod > property_noise_shaping() const; |
| 240 | |
| 241 | |
| 242 | public: |
| 243 | |
| 244 | public: |
| 245 | //C++ methods used to invoke GTK+ virtual functions: |
| 246 | |
| 247 | protected: |
| 248 | //GTK+ Virtual Functions (override these to change behaviour): |
| 249 | |
| 250 | //Default Signal Handlers:: |
| 251 | |
| 252 | |
| 253 | }; |
| 254 | |
| 255 | } // namespace Gst |
| 256 | |
| 257 | |
| 258 | namespace Glib |
| 259 | { |
| 260 | /** A Glib::wrap() method for this object. |
| 261 | * |
| 262 | * @param object The C instance. |
| 263 | * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
| 264 | * @result A C++ instance that wraps this C instance. |
| 265 | * |
| 266 | * @relates Gst::AudioConvert |
| 267 | */ |
| 268 | Glib::RefPtr<Gst::AudioConvert> wrap(GstAudioConvert* object, bool take_copy = false); |
| 269 | } |
| 270 | |
| 271 | |
| 272 | #endif // GSTREAMERMM_DISABLE_DEPRECATED |
| 273 | |
| 274 | |
| 275 | #endif /* _GSTREAMERMM_AUDIOCONVERT_H */ |
| 276 |