Debian Codegraph @

gstreamer/gstreamermm/audiosink.cc

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