| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/audiosrc.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/audiosrc.h>cxx . . $ `<file>/gstreamer/gstreamermm/audiosrc.h`/ |
| 7 | #include <gstreamermm/private/audiosrc_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/audiosrc_p.h`/ |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2008-2016 The gstreamermm Development Team |
| 13 | * |
| 14 | * This library is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU Lesser General Public |
| 16 | * License as published by the Free Software Foundation; either |
| 17 | * version 2.1 of the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This library is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | * Lesser General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU Lesser General Public |
| 25 | * License along with this library; if not, write to the Free |
| 26 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 | */ |
| 28 | |
| 29 | #include <gst/audio/gstaudiosrc.h> |
| 30 | |
| 31 | |
| 32 | namespace Gstcxx . . $ Gst/ |
| 33 | { |
| 34 | |
| 35 | gboolean AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::prepare_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#prepare_vfunc_callback(c19013b8f73c96d).(GstAudioSrccxx . . $ GstAudioSrc#* self, GstAudioRingBufferSpec* spec) |
| 36 | { |
| 37 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase# *const obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 38 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 39 | |
| 40 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 41 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 42 | // generated classes can use this optimisation, which avoids the unnecessary |
| 43 | // parameter conversions if there is no possibility of the virtual function |
| 44 | // being overridden: |
| 45 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 46 | { |
| 47 | CppObjectTypecxx . . $ Gst/AudioSrc_Class#CppObjectType# *const obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioSrc_Class#CppObjectType#* const>(obj_base); |
| 48 | if(obj) // This can be NULL during destruction. |
| 49 | { |
| 50 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 51 | { |
| 52 | Gstcxx . . $ Gst/::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec# cpp_speccxx . . $ Gst/AudioRingBufferSpec#AudioRingBufferSpec(99fcc97b27c08607).(*spec); |
| 53 | |
| 54 | // Call the virtual member method, which derived classes might override. |
| 55 | return static_cast<int>(obj->prepare_vfunccxx . . $ Gst/AudioSrc#prepare_vfunc(edab929607edba42).(cpp_spec)); |
| 56 | } |
| 57 | catch(...) |
| 58 | { |
| 59 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType#*>( |
| 65 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 66 | ); |
| 67 | |
| 68 | // Call the original underlying C function: |
| 69 | if(base && base->preparecxx . . $ _GstAudioSrcClass#prepare.) |
| 70 | return (*base->preparecxx . . $ _GstAudioSrcClass#prepare.)(self, spec); |
| 71 | |
| 72 | |
| 73 | typedef gboolean RTypecxx . . $ Gst/AudioSrc_Class#prepare_vfunc_callback(c19013b8f73c96d).RType#; |
| 74 | return RTypecxx . . $ Gst/AudioSrc_Class#prepare_vfunc_callback(c19013b8f73c96d).RType#(); |
| 75 | } |
| 76 | bool Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#::prepare_vfunccxx . . $ Gst/AudioSrc#prepare_vfunc(edab929607edba42).(Gstcxx . . $ Gst/::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#& spec) |
| 77 | { |
| 78 | BaseClassTypecxx . . $ Gst/AudioSrc#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc#BaseClassType#*>( |
| 79 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 80 | ); |
| 81 | |
| 82 | if(base && base->preparecxx . . $ _GstAudioSrcClass#prepare.) |
| 83 | return static_cast<bool>((*base->preparecxx . . $ _GstAudioSrcClass#prepare.)(gobjcxx . . $ Gst/AudioSrc#gobj(eb2adfda8c8b1ef9).(), spec.gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).())); |
| 84 | |
| 85 | typedef bool RTypecxx . . $ Gst/AudioSrc#prepare_vfunc(edab929607edba42).RType#; |
| 86 | return RTypecxx . . $ Gst/AudioSrc#prepare_vfunc(edab929607edba42).RType#(); |
| 87 | } |
| 88 | guint AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::read_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#read_vfunc_callback(adfed23d14f3dc1c).(GstAudioSrccxx . . $ GstAudioSrc#* self, gpointer data, guint length, ClockTimecxx . . $ Gst/ClockTime#* timestamp) |
| 89 | { |
| 90 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase# *const obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 91 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 92 | |
| 93 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 94 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 95 | // generated classes can use this optimisation, which avoids the unnecessary |
| 96 | // parameter conversions if there is no possibility of the virtual function |
| 97 | // being overridden: |
| 98 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 99 | { |
| 100 | CppObjectTypecxx . . $ Gst/AudioSrc_Class#CppObjectType# *const obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioSrc_Class#CppObjectType#* const>(obj_base); |
| 101 | if(obj) // This can be NULL during destruction. |
| 102 | { |
| 103 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 104 | { |
| 105 | // Call the virtual member method, which derived classes might override. |
| 106 | return obj->read_vfunccxx . . $ Gst/AudioSrc#read_vfunc(ab1c501944935310).(data, length, *timestamp); |
| 107 | } |
| 108 | catch(...) |
| 109 | { |
| 110 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType#*>( |
| 116 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 117 | ); |
| 118 | |
| 119 | // Call the original underlying C function: |
| 120 | if(base && base->readcxx . . $ _GstAudioSrcClass#read.) |
| 121 | return (*base->readcxx . . $ _GstAudioSrcClass#read.)(self, data, length, timestamp); |
| 122 | |
| 123 | |
| 124 | typedef guint RTypecxx . . $ Gst/AudioSrc_Class#read_vfunc_callback(adfed23d14f3dc1c).RType#; |
| 125 | return RTypecxx . . $ Gst/AudioSrc_Class#read_vfunc_callback(adfed23d14f3dc1c).RType#(); |
| 126 | } |
| 127 | guint Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#::read_vfunccxx . . $ Gst/AudioSrc#read_vfunc(ab1c501944935310).(const void* data, guint length, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& timestamp) |
| 128 | { |
| 129 | BaseClassTypecxx . . $ Gst/AudioSrc#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc#BaseClassType#*>( |
| 130 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 131 | ); |
| 132 | |
| 133 | if(base && base->readcxx . . $ _GstAudioSrcClass#read.) |
| 134 | return (*base->readcxx . . $ _GstAudioSrcClass#read.)(gobjcxx . . $ Gst/AudioSrc#gobj(eb2adfda8c8b1ef9).(),const_cast<void*>(data),length, ×tamp); |
| 135 | |
| 136 | typedef guint RTypecxx . . $ Gst/AudioSrc#read_vfunc(ab1c501944935310).RType#; |
| 137 | return RTypecxx . . $ Gst/AudioSrc#read_vfunc(ab1c501944935310).RType#(); |
| 138 | } |
| 139 | |
| 140 | } // namespace Gst |
| 141 | |
| 142 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/audiosrc.cc`/ |
| 143 | { |
| 144 | } // anonymous namespace |
| 145 | |
| 146 | |
| 147 | namespace Glibcxx . . $ Glib/ |
| 148 | { |
| 149 | |
| 150 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#> wrapcxx . . $ Glib/wrap(662195142fe5c413).(GstAudioSrccxx . . $ GstAudioSrc#* object, bool take_copy) |
| 151 | { |
| 152 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#>( dynamic_cast<Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#*> (Glibcxx . . $ Glib/::wrap_autocxx . . $ Glib/wrap_auto(fd1af59aa43b0601). ((GObjectcxx . . $ GObject#*)(object), take_copy)) ); |
| 153 | //We use dynamic_cast<> in case of multiple inheritance. |
| 154 | } |
| 155 | |
| 156 | } /* namespace Glib */ |
| 157 | |
| 158 | |
| 159 | namespace Gstcxx . . $ Gst/ |
| 160 | { |
| 161 | |
| 162 | |
| 163 | /* The *_Class implementation: */ |
| 164 | |
| 165 | const Glibcxx . . $ Glib/::Classcxx . . $ Glib/Class#& AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::initcxx . . $ Gst/AudioSrc_Class#init(bf348c0cd369184d).() |
| 166 | { |
| 167 | if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary |
| 168 | { |
| 169 | // Glib::Class has to know the class init function to clone custom types. |
| 170 | class_init_func_cxx . . $ Glib/Class#class_init_func_. = &AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::class_init_functioncxx . . $ Gst/AudioSrc_Class#class_init_function(6c58c5e2437d25a2).; |
| 171 | |
| 172 | // This is actually just optimized away, apparently with no harm. |
| 173 | // Make sure that the parent type has been created. |
| 174 | //CppClassParent::CppObjectType::get_type(); |
| 175 | |
| 176 | // Create the wrapper type, with the same class/instance size as the base type. |
| 177 | register_derived_typecxx . . $ Glib/Class#register_derived_type(2c44cd906ae4e829).(gst_audio_src_get_type()); |
| 178 | |
| 179 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 180 | |
| 181 | } |
| 182 | |
| 183 | return *this; |
| 184 | } |
| 185 | |
| 186 | |
| 187 | void AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::class_init_functioncxx . . $ Gst/AudioSrc_Class#class_init_function(6c58c5e2437d25a2).(void* g_class, void* class_data) |
| 188 | { |
| 189 | const auto klass = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType#*>(g_class); |
| 190 | CppClassParentcxx . . $ Gst/AudioSrc_Class#CppClassParent#::class_init_functioncxx . . $ Gst/AudioBaseSrc_Class#class_init_function(6c58c5e2437d25a2).(klass, class_data); |
| 191 | |
| 192 | klass->opencxx . . $ _GstAudioSrcClass#open. = &open_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#open_vfunc_callback(5546e4104cc8b9e0).; |
| 193 | klass->unpreparecxx . . $ _GstAudioSrcClass#unprepare. = &unprepare_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#unprepare_vfunc_callback(5546e4104cc8b9e0).; |
| 194 | klass->closecxx . . $ _GstAudioSrcClass#close. = &close_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#close_vfunc_callback(5546e4104cc8b9e0).; |
| 195 | klass->delaycxx . . $ _GstAudioSrcClass#delay. = &delay_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#delay_vfunc_callback(f9946e7e75575773).; |
| 196 | klass->resetcxx . . $ _GstAudioSrcClass#reset. = &reset_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#reset_vfunc_callback(1e52e55b75405346).; |
| 197 | klass->preparecxx . . $ _GstAudioSrcClass#prepare. = &prepare_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#prepare_vfunc_callback(c19013b8f73c96d).; |
| 198 | klass->readcxx . . $ _GstAudioSrcClass#read. = &read_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#read_vfunc_callback(adfed23d14f3dc1c).; |
| 199 | |
| 200 | } |
| 201 | |
| 202 | gboolean AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::open_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#open_vfunc_callback(5546e4104cc8b9e0).(GstAudioSrccxx . . $ GstAudioSrc#* self) |
| 203 | { |
| 204 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 205 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 206 | |
| 207 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 208 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 209 | // generated classes can use this optimisation, which avoids the unnecessary |
| 210 | // parameter conversions if there is no possibility of the virtual function |
| 211 | // being overridden: |
| 212 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 213 | { |
| 214 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioSrc_Class#CppObjectType#* const>(obj_base); |
| 215 | if(obj) // This can be NULL during destruction. |
| 216 | { |
| 217 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 218 | { |
| 219 | // Call the virtual member method, which derived classes might override. |
| 220 | return static_cast<int>(obj->open_vfunccxx . . $ Gst/AudioSrc#open_vfunc(c9857a73d68e59ba).()); |
| 221 | } |
| 222 | catch(...) |
| 223 | { |
| 224 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 225 | } |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType#*>( |
| 230 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 231 | ); |
| 232 | |
| 233 | // Call the original underlying C function: |
| 234 | if(base && base->opencxx . . $ _GstAudioSrcClass#open.) |
| 235 | return (*base->opencxx . . $ _GstAudioSrcClass#open.)(self); |
| 236 | |
| 237 | using RTypecxx . . $ Gst/AudioSrc_Class#open_vfunc_callback(5546e4104cc8b9e0).RType# = gboolean; |
| 238 | return RTypecxx . . $ Gst/AudioSrc_Class#open_vfunc_callback(5546e4104cc8b9e0).RType#(); |
| 239 | } |
| 240 | gboolean AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::unprepare_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#unprepare_vfunc_callback(5546e4104cc8b9e0).(GstAudioSrccxx . . $ GstAudioSrc#* self) |
| 241 | { |
| 242 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 243 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 244 | |
| 245 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 246 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 247 | // generated classes can use this optimisation, which avoids the unnecessary |
| 248 | // parameter conversions if there is no possibility of the virtual function |
| 249 | // being overridden: |
| 250 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 251 | { |
| 252 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioSrc_Class#CppObjectType#* const>(obj_base); |
| 253 | if(obj) // This can be NULL during destruction. |
| 254 | { |
| 255 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 256 | { |
| 257 | // Call the virtual member method, which derived classes might override. |
| 258 | return static_cast<int>(obj->unprepare_vfunccxx . . $ Gst/AudioSrc#unprepare_vfunc(c9857a73d68e59ba).()); |
| 259 | } |
| 260 | catch(...) |
| 261 | { |
| 262 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 263 | } |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType#*>( |
| 268 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 269 | ); |
| 270 | |
| 271 | // Call the original underlying C function: |
| 272 | if(base && base->unpreparecxx . . $ _GstAudioSrcClass#unprepare.) |
| 273 | return (*base->unpreparecxx . . $ _GstAudioSrcClass#unprepare.)(self); |
| 274 | |
| 275 | using RTypecxx . . $ Gst/AudioSrc_Class#unprepare_vfunc_callback(5546e4104cc8b9e0).RType# = gboolean; |
| 276 | return RTypecxx . . $ Gst/AudioSrc_Class#unprepare_vfunc_callback(5546e4104cc8b9e0).RType#(); |
| 277 | } |
| 278 | gboolean AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::close_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#close_vfunc_callback(5546e4104cc8b9e0).(GstAudioSrccxx . . $ GstAudioSrc#* self) |
| 279 | { |
| 280 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 281 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 282 | |
| 283 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 284 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 285 | // generated classes can use this optimisation, which avoids the unnecessary |
| 286 | // parameter conversions if there is no possibility of the virtual function |
| 287 | // being overridden: |
| 288 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 289 | { |
| 290 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioSrc_Class#CppObjectType#* const>(obj_base); |
| 291 | if(obj) // This can be NULL during destruction. |
| 292 | { |
| 293 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 294 | { |
| 295 | // Call the virtual member method, which derived classes might override. |
| 296 | return static_cast<int>(obj->close_vfunccxx . . $ Gst/AudioSrc#close_vfunc(c9857a73d68e59ba).()); |
| 297 | } |
| 298 | catch(...) |
| 299 | { |
| 300 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 301 | } |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType#*>( |
| 306 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 307 | ); |
| 308 | |
| 309 | // Call the original underlying C function: |
| 310 | if(base && base->closecxx . . $ _GstAudioSrcClass#close.) |
| 311 | return (*base->closecxx . . $ _GstAudioSrcClass#close.)(self); |
| 312 | |
| 313 | using RTypecxx . . $ Gst/AudioSrc_Class#close_vfunc_callback(5546e4104cc8b9e0).RType# = gboolean; |
| 314 | return RTypecxx . . $ Gst/AudioSrc_Class#close_vfunc_callback(5546e4104cc8b9e0).RType#(); |
| 315 | } |
| 316 | guint AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::delay_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#delay_vfunc_callback(f9946e7e75575773).(GstAudioSrccxx . . $ GstAudioSrc#* self) |
| 317 | { |
| 318 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 319 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 320 | |
| 321 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 322 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 323 | // generated classes can use this optimisation, which avoids the unnecessary |
| 324 | // parameter conversions if there is no possibility of the virtual function |
| 325 | // being overridden: |
| 326 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 327 | { |
| 328 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioSrc_Class#CppObjectType#* const>(obj_base); |
| 329 | if(obj) // This can be NULL during destruction. |
| 330 | { |
| 331 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 332 | { |
| 333 | // Call the virtual member method, which derived classes might override. |
| 334 | return obj->get_delay_vfunccxx . . $ Gst/AudioSrc#get_delay_vfunc(ddd8539a2fcdd4ce).(); |
| 335 | } |
| 336 | catch(...) |
| 337 | { |
| 338 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 339 | } |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType#*>( |
| 344 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 345 | ); |
| 346 | |
| 347 | // Call the original underlying C function: |
| 348 | if(base && base->delaycxx . . $ _GstAudioSrcClass#delay.) |
| 349 | return (*base->delaycxx . . $ _GstAudioSrcClass#delay.)(self); |
| 350 | |
| 351 | using RTypecxx . . $ Gst/AudioSrc_Class#delay_vfunc_callback(f9946e7e75575773).RType# = guint; |
| 352 | return RTypecxx . . $ Gst/AudioSrc_Class#delay_vfunc_callback(f9946e7e75575773).RType#(); |
| 353 | } |
| 354 | void AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::reset_vfunc_callbackcxx . . $ Gst/AudioSrc_Class#reset_vfunc_callback(1e52e55b75405346).(GstAudioSrccxx . . $ GstAudioSrc#* self) |
| 355 | { |
| 356 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 357 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 358 | |
| 359 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 360 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 361 | // generated classes can use this optimisation, which avoids the unnecessary |
| 362 | // parameter conversions if there is no possibility of the virtual function |
| 363 | // being overridden: |
| 364 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 365 | { |
| 366 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioSrc_Class#CppObjectType#* const>(obj_base); |
| 367 | if(obj) // This can be NULL during destruction. |
| 368 | { |
| 369 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 370 | { |
| 371 | // Call the virtual member method, which derived classes might override. |
| 372 | obj->reset_vfunccxx . . $ Gst/AudioSrc#reset_vfunc(49f6e7a06ebc5aa8).(); |
| 373 | return; |
| 374 | } |
| 375 | catch(...) |
| 376 | { |
| 377 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 378 | } |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc_Class#BaseClassType#*>( |
| 383 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self)) // Get the parent class of the object class (The original underlying C class). |
| 384 | ); |
| 385 | |
| 386 | // Call the original underlying C function: |
| 387 | if(base && base->resetcxx . . $ _GstAudioSrcClass#reset.) |
| 388 | (*base->resetcxx . . $ _GstAudioSrcClass#reset.)(self); |
| 389 | } |
| 390 | |
| 391 | |
| 392 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#::wrap_newcxx . . $ Gst/AudioSrc_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object) |
| 393 | { |
| 394 | return new AudioSrccxx . . $ Gst/AudioSrc#((GstAudioSrccxx . . $ GstAudioSrc#*)object); |
| 395 | } |
| 396 | |
| 397 | |
| 398 | /* The implementation: */ |
| 399 | |
| 400 | GstAudioSrccxx . . $ GstAudioSrc#* AudioSrccxx . . $ Gst/AudioSrc#::gobj_copycxx . . $ Gst/AudioSrc#gobj_copy(eb2adfda8c8b1ef9).() |
| 401 | { |
| 402 | referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).(); |
| 403 | return gobjcxx . . $ Gst/AudioSrc#gobj(eb2adfda8c8b1ef9).(); |
| 404 | } |
| 405 | |
| 406 | AudioSrccxx . . $ Gst/AudioSrc#::AudioSrccxx . . $ Gst/AudioSrc#AudioSrc(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params) |
| 407 | : |
| 408 | Gstcxx . . $ Gst/::AudioBaseSrccxx . . $ Gst/AudioBaseSrc#(construct_params) |
| 409 | { |
| 410 | |
| 411 | } |
| 412 | |
| 413 | AudioSrccxx . . $ Gst/AudioSrc#::AudioSrccxx . . $ Gst/AudioSrc#AudioSrc(1e52e55b75405346).(GstAudioSrccxx . . $ GstAudioSrc#* castitem) |
| 414 | : |
| 415 | Gstcxx . . $ Gst/::AudioBaseSrccxx . . $ Gst/AudioBaseSrc#((GstAudioBaseSrccxx . . $ GstAudioBaseSrc#*)(castitem)) |
| 416 | {} |
| 417 | |
| 418 | |
| 419 | AudioSrccxx . . $ Gst/AudioSrc#::AudioSrccxx . . $ Gst/AudioSrc#AudioSrc(dce2ca7b7b6ebe92).(AudioSrccxx . . $ Gst/AudioSrc#&& src) noexcept |
| 420 | : Gstcxx . . $ Gst/::AudioBaseSrccxx . . $ Gst/AudioBaseSrc#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)) |
| 421 | {} |
| 422 | |
| 423 | AudioSrccxx . . $ Gst/AudioSrc#& AudioSrccxx . . $ Gst/AudioSrc#::operatorcxx . . $ Gst/AudioSrc#`operator=`(e2684fd4ba024cc9).=(AudioSrccxx . . $ Gst/AudioSrc#&& src) noexcept |
| 424 | { |
| 425 | Gstcxx . . $ Gst/::AudioBaseSrccxx . . $ Gst/AudioBaseSrc#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)); |
| 426 | return *this; |
| 427 | } |
| 428 | |
| 429 | |
| 430 | AudioSrccxx . . $ Gst/AudioSrc#::~cxx . . $ Gst/AudioSrc#`~AudioSrc`(ced63f7c635d850d).AudioSrccxx . . $ Gst/AudioSrc#() noexcept |
| 431 | {} |
| 432 | |
| 433 | |
| 434 | AudioSrccxx . . $ Gst/AudioSrc#::CppClassTypecxx . . $ Gst/AudioSrc#CppClassType# AudioSrccxx . . $ Gst/AudioSrc#::audiosrc_class_cxx . . $ Gst/AudioSrc#audiosrc_class_.; // initialize static member |
| 435 | |
| 436 | GType AudioSrccxx . . $ Gst/AudioSrc#::get_typecxx . . $ Gst/AudioSrc#get_type(f708dce9a8856c70).() |
| 437 | { |
| 438 | return audiosrc_class_cxx . . $ Gst/AudioSrc#audiosrc_class_..initcxx . . $ Gst/AudioSrc_Class#init(bf348c0cd369184d).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).(); |
| 439 | } |
| 440 | |
| 441 | |
| 442 | GType AudioSrccxx . . $ Gst/AudioSrc#::get_base_typecxx . . $ Gst/AudioSrc#get_base_type(f708dce9a8856c70).() |
| 443 | { |
| 444 | return gst_audio_src_get_type(); |
| 445 | } |
| 446 | |
| 447 | |
| 448 | bool Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#::open_vfunccxx . . $ Gst/AudioSrc#open_vfunc(c9857a73d68e59ba).() |
| 449 | { |
| 450 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc#BaseClassType#*>( |
| 451 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 452 | ); |
| 453 | |
| 454 | if(base && base->opencxx . . $ _GstAudioSrcClass#open.) |
| 455 | { |
| 456 | bool retval((*base->opencxx . . $ _GstAudioSrcClass#open.)(gobjcxx . . $ Gst/AudioSrc#gobj(eb2adfda8c8b1ef9).())); |
| 457 | return retval; |
| 458 | } |
| 459 | |
| 460 | using RTypecxx . . $ Gst/AudioSrc#open_vfunc(c9857a73d68e59ba).RType# = bool; |
| 461 | return RTypecxx . . $ Gst/AudioSrc#open_vfunc(c9857a73d68e59ba).RType#(); |
| 462 | } |
| 463 | bool Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#::unprepare_vfunccxx . . $ Gst/AudioSrc#unprepare_vfunc(c9857a73d68e59ba).() |
| 464 | { |
| 465 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc#BaseClassType#*>( |
| 466 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 467 | ); |
| 468 | |
| 469 | if(base && base->unpreparecxx . . $ _GstAudioSrcClass#unprepare.) |
| 470 | { |
| 471 | bool retval((*base->unpreparecxx . . $ _GstAudioSrcClass#unprepare.)(gobjcxx . . $ Gst/AudioSrc#gobj(eb2adfda8c8b1ef9).())); |
| 472 | return retval; |
| 473 | } |
| 474 | |
| 475 | using RTypecxx . . $ Gst/AudioSrc#unprepare_vfunc(c9857a73d68e59ba).RType# = bool; |
| 476 | return RTypecxx . . $ Gst/AudioSrc#unprepare_vfunc(c9857a73d68e59ba).RType#(); |
| 477 | } |
| 478 | bool Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#::close_vfunccxx . . $ Gst/AudioSrc#close_vfunc(c9857a73d68e59ba).() |
| 479 | { |
| 480 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc#BaseClassType#*>( |
| 481 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 482 | ); |
| 483 | |
| 484 | if(base && base->closecxx . . $ _GstAudioSrcClass#close.) |
| 485 | { |
| 486 | bool retval((*base->closecxx . . $ _GstAudioSrcClass#close.)(gobjcxx . . $ Gst/AudioSrc#gobj(eb2adfda8c8b1ef9).())); |
| 487 | return retval; |
| 488 | } |
| 489 | |
| 490 | using RTypecxx . . $ Gst/AudioSrc#close_vfunc(c9857a73d68e59ba).RType# = bool; |
| 491 | return RTypecxx . . $ Gst/AudioSrc#close_vfunc(c9857a73d68e59ba).RType#(); |
| 492 | } |
| 493 | guint Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#::get_delay_vfunccxx . . $ Gst/AudioSrc#get_delay_vfunc(ddd8539a2fcdd4ce).() const |
| 494 | { |
| 495 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc#BaseClassType#*>( |
| 496 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 497 | ); |
| 498 | |
| 499 | if(base && base->delaycxx . . $ _GstAudioSrcClass#delay.) |
| 500 | { |
| 501 | guint retval((*base->delaycxx . . $ _GstAudioSrcClass#delay.)(const_cast<GstAudioSrccxx . . $ GstAudioSrc#*>(gobjcxx . . $ Gst/AudioSrc#gobj(3e4e615fd0b4b54c).()))); |
| 502 | return retval; |
| 503 | } |
| 504 | |
| 505 | using RTypecxx . . $ Gst/AudioSrc#get_delay_vfunc(ddd8539a2fcdd4ce).RType# = guint; |
| 506 | return RTypecxx . . $ Gst/AudioSrc#get_delay_vfunc(ddd8539a2fcdd4ce).RType#(); |
| 507 | } |
| 508 | void Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#::reset_vfunccxx . . $ Gst/AudioSrc#reset_vfunc(49f6e7a06ebc5aa8).() |
| 509 | { |
| 510 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioSrc#BaseClassType#*>( |
| 511 | g_type_class_peek_parent(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_)) // Get the parent class of the object class (The original underlying C class). |
| 512 | ); |
| 513 | |
| 514 | if(base && base->resetcxx . . $ _GstAudioSrcClass#reset.) |
| 515 | { |
| 516 | (*base->resetcxx . . $ _GstAudioSrcClass#reset.)(gobjcxx . . $ Gst/AudioSrc#gobj(eb2adfda8c8b1ef9).()); |
| 517 | } |
| 518 | } |
| 519 | |
| 520 | |
| 521 | } // namespace Gst |
| 522 | |
| 523 |