Debian Codegraph @

gstreamer/gstreamermm/audioringbuffer.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/audioringbuffer.cc`/
2
3
4 #include <glibmm.h>
5
6 #include <gstreamermm/audioringbuffer.h>cxx . . $ `<file>/gstreamer/gstreamermm/audioringbuffer.h`/
7 #include <gstreamermm/private/audioringbuffer_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/audioringbuffer_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 <gstreamermm/handle_error.h>cxx . . $ `<file>/gstreamer/gstreamermm/handle_error.h`/
30
31
32 namespace Gstcxx . . $ Gst/
33 {
34
35 AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#AudioRingBufferSpec(49f6e7a06ebc5aa8).()
36 : m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.(g_try_newcxx . . $ `<external>/1123956534522462559/gmem.h:363:9`!(GstAudioRingBufferSpec, 1)),
37 take_ownershipcxx . . $ Gst/AudioRingBufferSpec#take_ownership.(true)
38 {
39 // Handle possible memory allocation failure.
40 if(!m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.)
41 {
42 gstreamermm_handle_errorcxx . . $ Gst/gstreamermm_handle_error(1ff0bff2cee2bc51).(
43 "Failed to allocate a new Gst::AudioRingBufferSpec."cxx . . $ Glib/ustring#ustring(85c52e162fed56f9).);
44 return;
45 }
46 }
47
48 AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#AudioRingBufferSpec(f2b0daab742b2223).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps,
49 Gstcxx . . $ Gst/::AudioRingBufferFormatTypecxx . . $ Gst/AudioRingBufferFormatType# type,
50 guint64 latency_time, guint64 buffer_time, int segsize, int segtotal,
51 int seglatency)
52 : m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.(g_try_newcxx . . $ `<external>/1123956534522462559/gmem.h:363:9`!(GstAudioRingBufferSpec, 1)),
53 take_ownershipcxx . . $ Gst/AudioRingBufferSpec#take_ownership.(true)
54 {
55 // Handle possible memory allocation failure.
56 if(!m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.)
57 {
58 gstreamermm_handle_errorcxx . . $ Gst/gstreamermm_handle_error(1ff0bff2cee2bc51).("Failed to allocate a new Gst::AudioRingBufferSpec."cxx . . $ Glib/ustring#ustring(85c52e162fed56f9).);
59 return;
60 }
61
62 GstAudioRingBufferSpec* spec = gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).();
63
64 spec->caps = Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(caps);
65
66 // Keep a copy of the caps (it will be unreferenced in the destructor).
67 if (caps)
68 caps->cxx . . $ Glib/RefPtr#`operator->`(34d6acfd341ba7ab).referencecxx . . $ Gst/Caps#reference(83f5f38750778ac8).();
69
70 spec->type = static_cast<GstAudioRingBufferFormatType>(type);
71 spec->latency_time = latency_time;
72 spec->buffer_time = buffer_time;
73 spec->segsize = segsize;
74 spec->segtotal = segtotal;
75 spec->seglatency = seglatency;
76 }
77
78
79 AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#AudioRingBufferSpec(99fcc97b27c08607).(GstAudioRingBufferSpec& castitem, bool take_ownership)
80 : m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.(&castitem),
81 take_ownershipcxx . . $ Gst/AudioRingBufferSpec#take_ownership.(take_ownership)
82 {
83 // Keep a copy of the caps (it will be unreferenced in the destructor).
84 if(castitem.caps)
85 gst_caps_ref(castitem.caps);
86 }
87
88 AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#AudioRingBufferSpec(941b62e87fccba94).(const AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#& other)
89 : m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.(g_try_newcxx . . $ `<external>/1123956534522462559/gmem.h:363:9`!(GstAudioRingBufferSpec, 1)),
90 take_ownershipcxx . . $ Gst/AudioRingBufferSpec#take_ownership.(true)
91 {
92 // Handle possible memory allocation failure.
93 if(!m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.)
94 {
95 gstreamermm_handle_errorcxx . . $ Gst/gstreamermm_handle_error(1ff0bff2cee2bc51).("Failed to allocate a new Gst::AudioRingBufferSpec."cxx . . $ Glib/ustring#ustring(85c52e162fed56f9).);
96 return;
97 }
98
99 m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->caps = other.m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->caps;
100
101 // Keep a copy of the caps (it will be unreferenced in the destructor).
102 if(m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->caps)
103 gst_caps_ref(m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->caps);
104
105 m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->type = other.m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->type;
106 m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->latency_time = other.m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->latency_time;
107 m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->buffer_time = other.m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->buffer_time;
108 m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->segsize = other.m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->segsize;
109 m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->segtotal = other.m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->segtotal;
110 m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->seglatency = other.m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->seglatency;
111 }
112
113 AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#& AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::operatorcxx . . $ Gst/AudioRingBufferSpec#`operator=`(261d2164f26625a5).=(const AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#& other)
114 {
115 AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec# tempcxx . . $ Gst/AudioRingBufferSpec#AudioRingBufferSpec(941b62e87fccba94).(other);
116 swapcxx . . $ Gst/AudioRingBufferSpec#swap(c6f040b1128487c9).(temp);
117 return *this;
118 }
119
120 AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::~cxx . . $ Gst/AudioRingBufferSpec#`~AudioRingBufferSpec`(ced63f7c635d850d).AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#()
121 {
122 // Unref existing reference to caps.
123 if(m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->caps)
124 gst_caps_unref(m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.->caps);
125
126 // Release the underlying m_spec if it is owned.
127 if(take_ownershipcxx . . $ Gst/AudioRingBufferSpec#take_ownership.)
128 g_free(m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.);
129 }
130
131 void AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::swapcxx . . $ Gst/AudioRingBufferSpec#swap(c6f040b1128487c9).(AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#& other)
132 {
133 GstAudioRingBufferSpec* spec_temp = m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.;
134 m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec. = other.m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec.;
135 other.m_speccxx . . $ Gst/AudioRingBufferSpec#m_spec. = spec_temp;
136
137 const bool take_temp = take_ownershipcxx . . $ Gst/AudioRingBufferSpec#take_ownership.;
138 take_ownershipcxx . . $ Gst/AudioRingBufferSpec#take_ownership. = other.take_ownershipcxx . . $ Gst/AudioRingBufferSpec#take_ownership.;
139 other.take_ownershipcxx . . $ Gst/AudioRingBufferSpec#take_ownership. = take_temp;
140 }
141
142 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::prepare_readcxx . . $ Gst/AudioRingBuffer#prepare_read(c885b5c8f7c196ef).(int& segment, stdcxx . . $ std/::vectorcxx . . $ std/vector#<guint8>& readptr,
143 int& len)
144 {
145 guint8* c_readptr = nullptr;
146
147 const bool result = static_cast<bool>(gst_audio_ring_buffer_prepare_read(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), &segment, &c_readptr, &len));
148 readptr.assigncxx . . $ std/vector#assign(50ef72ff69bc573d).(c_readptr, c_readptr + len);
149
150 if (c_readptr)
151 g_free(c_readptr);
152
153 return result;
154 }
155
156 gboolean AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::acquire_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#acquire_vfunc_callback(5d3824f52cacd378).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self, GstAudioRingBufferSpec* spec)
157 {
158 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase# *const obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
159 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
160
161 // Non-gtkmmproc-generated custom classes implicitly call the default
162 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
163 // generated classes can use this optimisation, which avoids the unnecessary
164 // parameter conversions if there is no possibility of the virtual function
165 // being overridden:
166 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
167 {
168 CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType# *const obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
169 if(obj) // This can be NULL during destruction.
170 {
171 try // Trap C++ exceptions which would normally be lost because this is a C callback.
172 {
173 Gstcxx . . $ Gst/::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec# cpp_speccxx . . $ Gst/AudioRingBufferSpec#AudioRingBufferSpec(99fcc97b27c08607).(*spec);
174
175 // Call the virtual member method, which derived classes might override.
176 return static_cast<int>(obj->acquire_vfunccxx . . $ Gst/AudioRingBuffer#acquire_vfunc(edab929607edba42).(cpp_spec));
177
178 }
179 catch(...)
180 {
181 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
182 }
183 }
184 }
185
186 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
187 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).
188 );
189
190 // Call the original underlying C function:
191 if(base && base->acquire)
192 return (*base->acquire)(self, spec);
193
194
195 typedef gboolean RTypecxx . . $ Gst/AudioRingBuffer_Class#acquire_vfunc_callback(5d3824f52cacd378).RType#;
196 return RTypecxx . . $ Gst/AudioRingBuffer_Class#acquire_vfunc_callback(5d3824f52cacd378).RType#();
197 }
198 bool Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::acquire_vfunccxx . . $ Gst/AudioRingBuffer#acquire_vfunc(edab929607edba42).(Gstcxx . . $ Gst/::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#& spec)
199 {
200 BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
201 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).
202 );
203
204 if(base && base->acquire)
205 return static_cast<bool>((*base->acquire)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), spec.gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).()));
206
207 typedef bool RTypecxx . . $ Gst/AudioRingBuffer#acquire_vfunc(edab929607edba42).RType#;
208 return RTypecxx . . $ Gst/AudioRingBuffer#acquire_vfunc(edab929607edba42).RType#();
209 }
210 guint AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::commit_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#commit_vfunc_callback(c215adcca71c0be3).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self, guint64* sample, guchar* data, gint in_samples, gint out_samples, gint* accum)
211 {
212 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase# *const obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
213 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
214
215 // Non-gtkmmproc-generated custom classes implicitly call the default
216 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
217 // generated classes can use this optimisation, which avoids the unnecessary
218 // parameter conversions if there is no possibility of the virtual function
219 // being overridden:
220 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
221 {
222 CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType# *const obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
223 if(obj) // This can be NULL during destruction.
224 {
225 try // Trap C++ exceptions which would normally be lost because this is a C callback.
226 {
227 // Declare the ArrayHandle for the C++ vfunc.
228 Glibcxx . . $ Glib/::ArrayHandlecxx . . $ Glib/ArrayHandle#<guchar> cpp_datacxx . . $ Glib/ArrayHandle#ArrayHandle(c9bb665335b8bce).(data, self->size, Glibcxx . . $ Glib/::OWNERSHIP_NONEcxx . . $ Glib/OWNERSHIP_NONE.);
229 // Call the virtual member method, which derived classes might override.
230 return obj->commit_vfunccxx . . $ Gst/AudioRingBuffer#commit_vfunc(2017c97f1311618e).(*(sample), Glibcxx . . $ Glib/::ArrayHandlercxx . . $ Glib/ArrayHandler#<guint8>::array_to_vectorcxx . . $ Glib/ArrayHandler#array_to_vector(54d60317333c5440).(data, self->size, Glibcxx . . $ Glib/::OWNERSHIP_NONEcxx . . $ Glib/OWNERSHIP_NONE.), in_samples, out_samples, *(accum));
231 }
232 catch(...)
233 {
234 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
235 }
236 }
237 }
238
239 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
240 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).
241 );
242
243 // Call the original underlying C function:
244 if(base && base->commit)
245 return (*base->commit)(self, sample, data, in_samples, out_samples, accum);
246
247
248 typedef guint RTypecxx . . $ Gst/AudioRingBuffer_Class#commit_vfunc_callback(c215adcca71c0be3).RType#;
249 return RTypecxx . . $ Gst/AudioRingBuffer_Class#commit_vfunc_callback(c215adcca71c0be3).RType#();
250 }
251 guint Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::commit_vfunccxx . . $ Gst/AudioRingBuffer#commit_vfunc(2017c97f1311618e).(guint64& sample, const stdcxx . . $ std/::vectorcxx . . $ std/vector#<guint8>& data, int in_samples, int out_samples, int& accum)
252 {
253 BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
254 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).
255 );
256
257 if(base && base->commit)
258 return (*base->commit)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(),&sample,Glibcxx . . $ Glib/::ArrayHandlercxx . . $ Glib/ArrayHandler#<guint8>::vector_to_arraycxx . . $ Glib/ArrayHandler#vector_to_array(3cda0708ca2cbec3).(data).datacxx . . $ Glib/Container_Helpers/ArrayKeeper#data(43621e3adc348eb).(),in_samples,out_samples,&accum);
259
260 typedef guint RTypecxx . . $ Gst/AudioRingBuffer#commit_vfunc(2017c97f1311618e).RType#;
261 return RTypecxx . . $ Gst/AudioRingBuffer#commit_vfunc(2017c97f1311618e).RType#();
262 }
263
264 } // namespace Gst
265
266 namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/audioringbuffer.cc`/
267 {
268 } // anonymous namespace
269
270 // static
271 GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::AudioChannelPosition>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).()
272 {
273 return gst_audio_channel_position_get_type();
274 }
275
276 // static
277 GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::AudioRingBufferState>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).()
278 {
279 return gst_audio_ring_buffer_state_get_type();
280 }
281
282 // static
283 GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::AudioRingBufferFormatType>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).()
284 {
285 return gst_audio_ring_buffer_format_type_get_type();
286 }
287
288
289 namespace Gstcxx . . $ Gst/
290 {
291
292
293 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::get_capscxx . . $ Gst/AudioRingBufferSpec#get_caps(22811ab509ec2061).()
294 {
295 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> ref_ptr(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).()->caps));
296
297 if(ref_ptr)
298 ref_ptr->cxx . . $ Glib/RefPtr#`operator->`(34d6acfd341ba7ab).referencecxx . . $ Gst/Caps#reference(83f5f38750778ac8).();
299
300 return ref_ptrcxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).;
301 }
302
303 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::get_capscxx . . $ Gst/AudioRingBufferSpec#get_caps(b365bf96c1803900).() const
304 {
305 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> ref_ptrcxx . . $ Glib/RefPtr#RefPtr(9e4c744904342adc).(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(22964ead79b261da).()->caps));
306
307 if(ref_ptr)
308 ref_ptr->cxx . . $ Glib/RefPtr#`operator->`(34d6acfd341ba7ab).referencecxx . . $ Gst/Caps#reference(83f5f38750778ac8).();
309
310 return ref_ptrcxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).;
311 }
312
313 void AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::set_capscxx . . $ Gst/AudioRingBufferSpec#set_caps(73baa747cf392ab9).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& value)
314 {
315 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> valueOld(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).()->caps)); //Take possession of the old one, unref-ing it in the destructor.
316
317 if(value)
318 value->cxx . . $ Glib/RefPtr#`operator->`(34d6acfd341ba7ab).referencecxx . . $ Gst/Caps#reference(83f5f38750778ac8).(); //Ref once for the recipient.
319
320 gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).()->caps = Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(value);
321 }
322
323 Gstcxx . . $ Gst/::AudioRingBufferFormatTypecxx . . $ Gst/AudioRingBufferFormatType# AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::get_typecxx . . $ Gst/AudioRingBufferSpec#get_type(6502a21dda5c61c5).() const
324 {
325 return ((Gstcxx . . $ Gst/::AudioRingBufferFormatTypecxx . . $ Gst/AudioRingBufferFormatType#)(gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(22964ead79b261da).()->type));
326 }
327
328 void AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::set_typecxx . . $ Gst/AudioRingBufferSpec#set_type(7c2e873105841458).(const Gstcxx . . $ Gst/::AudioRingBufferFormatTypecxx . . $ Gst/AudioRingBufferFormatType#& value)
329 {
330 gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).()->type = ((GstAudioRingBufferFormatType)(value));
331 }
332
333 guint64 AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::get_latency_timecxx . . $ Gst/AudioRingBufferSpec#get_latency_time(fe4d2d262d4164a8).() const
334 {
335 return gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(22964ead79b261da).()->latency_time;
336 }
337
338 void AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::set_latency_timecxx . . $ Gst/AudioRingBufferSpec#set_latency_time(ae19885fdae2095).(const guint64& value)
339 {
340 gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).()->latency_time = value;
341 }
342
343 guint64 AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::get_buffer_timecxx . . $ Gst/AudioRingBufferSpec#get_buffer_time(fe4d2d262d4164a8).() const
344 {
345 return gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(22964ead79b261da).()->buffer_time;
346 }
347
348 void AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::set_buffer_timecxx . . $ Gst/AudioRingBufferSpec#set_buffer_time(ae19885fdae2095).(const guint64& value)
349 {
350 gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).()->buffer_time = value;
351 }
352
353 int AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::get_segsizecxx . . $ Gst/AudioRingBufferSpec#get_segsize(455f465bc33b4cdf).() const
354 {
355 return gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(22964ead79b261da).()->segsize;
356 }
357
358 void AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::set_segsizecxx . . $ Gst/AudioRingBufferSpec#set_segsize(794bbbca577513a2).(const int& value)
359 {
360 gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).()->segsize = value;
361 }
362
363 int AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::get_segtotalcxx . . $ Gst/AudioRingBufferSpec#get_segtotal(455f465bc33b4cdf).() const
364 {
365 return gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(22964ead79b261da).()->segtotal;
366 }
367
368 void AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::set_segtotalcxx . . $ Gst/AudioRingBufferSpec#set_segtotal(794bbbca577513a2).(const int& value)
369 {
370 gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).()->segtotal = value;
371 }
372
373 int AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::get_seglatencycxx . . $ Gst/AudioRingBufferSpec#get_seglatency(455f465bc33b4cdf).() const
374 {
375 return gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(22964ead79b261da).()->seglatency;
376 }
377
378 void AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#::set_seglatencycxx . . $ Gst/AudioRingBufferSpec#set_seglatency(794bbbca577513a2).(const int& value)
379 {
380 gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).()->seglatency = value;
381 }
382
383
384 } // namespace Gst
385
386
387 namespace Glibcxx . . $ Glib/
388 {
389
390 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#> wrapcxx . . $ Glib/wrap(e75858f8ee84af8f).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* object, bool take_copy)
391 {
392 return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#>( dynamic_cast<Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#*> (Glibcxx . . $ Glib/::wrap_autocxx . . $ Glib/wrap_auto(fd1af59aa43b0601). ((GObjectcxx . . $ GObject#*)(object), take_copy)) );
393 //We use dynamic_cast<> in case of multiple inheritance.
394 }
395
396 } /* namespace Glib */
397
398
399 namespace Gstcxx . . $ Gst/
400 {
401
402
403 /* The *_Class implementation: */
404
405 const Glibcxx . . $ Glib/::Classcxx . . $ Glib/Class#& AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::initcxx . . $ Gst/AudioRingBuffer_Class#init(bf348c0cd369184d).()
406 {
407 if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary
408 {
409 // Glib::Class has to know the class init function to clone custom types.
410 class_init_func_cxx . . $ Glib/Class#class_init_func_. = &AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::class_init_functioncxx . . $ Gst/AudioRingBuffer_Class#class_init_function(6c58c5e2437d25a2).;
411
412 // This is actually just optimized away, apparently with no harm.
413 // Make sure that the parent type has been created.
414 //CppClassParent::CppObjectType::get_type();
415
416 // Create the wrapper type, with the same class/instance size as the base type.
417 register_derived_typecxx . . $ Glib/Class#register_derived_type(2c44cd906ae4e829).(gst_audio_ring_buffer_get_type());
418
419 // Add derived versions of interfaces, if the C type implements any interfaces:
420
421 }
422
423 return *this;
424 }
425
426
427 void AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::class_init_functioncxx . . $ Gst/AudioRingBuffer_Class#class_init_function(6c58c5e2437d25a2).(void* g_class, void* class_data)
428 {
429 const auto klass = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(g_class);
430 CppClassParentcxx . . $ Gst/AudioRingBuffer_Class#CppClassParent#::class_init_functioncxx . . $ Gst/Object_Class#class_init_function(6c58c5e2437d25a2).(klass, class_data);
431
432 klass->open_device = &open_device_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#open_device_vfunc_callback(46a8c182b61d1e73).;
433 klass->release = &release_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#release_vfunc_callback(46a8c182b61d1e73).;
434 klass->close_device = &close_device_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#close_device_vfunc_callback(46a8c182b61d1e73).;
435 klass->start = &start_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#start_vfunc_callback(46a8c182b61d1e73).;
436 klass->pause = &pause_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#pause_vfunc_callback(46a8c182b61d1e73).;
437 klass->resume = &resume_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#resume_vfunc_callback(46a8c182b61d1e73).;
438 klass->stop = &stop_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#stop_vfunc_callback(46a8c182b61d1e73).;
439 klass->delay = &delay_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#delay_vfunc_callback(4048963686f92380).;
440 klass->activate = &activate_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#activate_vfunc_callback(6659c6e5c84731f1).;
441 klass->clear_all = &clear_all_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#clear_all_vfunc_callback(671b48d56da96fb).;
442 klass->acquire = &acquire_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#acquire_vfunc_callback(5d3824f52cacd378).;
443 klass->commit = &commit_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#commit_vfunc_callback(c215adcca71c0be3).;
444
445 }
446
447 gboolean AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::open_device_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#open_device_vfunc_callback(46a8c182b61d1e73).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self)
448 {
449 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
450 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
451
452 // Non-gtkmmproc-generated custom classes implicitly call the default
453 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
454 // generated classes can use this optimisation, which avoids the unnecessary
455 // parameter conversions if there is no possibility of the virtual function
456 // being overridden:
457 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
458 {
459 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
460 if(obj) // This can be NULL during destruction.
461 {
462 try // Trap C++ exceptions which would normally be lost because this is a C callback.
463 {
464 // Call the virtual member method, which derived classes might override.
465 return static_cast<int>(obj->open_device_vfunccxx . . $ Gst/AudioRingBuffer#open_device_vfunc(c9857a73d68e59ba).());
466 }
467 catch(...)
468 {
469 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
470 }
471 }
472 }
473
474 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
475 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).
476 );
477
478 // Call the original underlying C function:
479 if(base && base->open_device)
480 return (*base->open_device)(self);
481
482 using RTypecxx . . $ Gst/AudioRingBuffer_Class#open_device_vfunc_callback(46a8c182b61d1e73).RType# = gboolean;
483 return RTypecxx . . $ Gst/AudioRingBuffer_Class#open_device_vfunc_callback(46a8c182b61d1e73).RType#();
484 }
485 gboolean AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::release_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#release_vfunc_callback(46a8c182b61d1e73).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self)
486 {
487 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
488 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
489
490 // Non-gtkmmproc-generated custom classes implicitly call the default
491 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
492 // generated classes can use this optimisation, which avoids the unnecessary
493 // parameter conversions if there is no possibility of the virtual function
494 // being overridden:
495 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
496 {
497 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
498 if(obj) // This can be NULL during destruction.
499 {
500 try // Trap C++ exceptions which would normally be lost because this is a C callback.
501 {
502 // Call the virtual member method, which derived classes might override.
503 return static_cast<int>(obj->release_vfunccxx . . $ Gst/AudioRingBuffer#release_vfunc(c9857a73d68e59ba).());
504 }
505 catch(...)
506 {
507 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
508 }
509 }
510 }
511
512 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
513 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).
514 );
515
516 // Call the original underlying C function:
517 if(base && base->release)
518 return (*base->release)(self);
519
520 using RTypecxx . . $ Gst/AudioRingBuffer_Class#release_vfunc_callback(46a8c182b61d1e73).RType# = gboolean;
521 return RTypecxx . . $ Gst/AudioRingBuffer_Class#release_vfunc_callback(46a8c182b61d1e73).RType#();
522 }
523 gboolean AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::close_device_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#close_device_vfunc_callback(46a8c182b61d1e73).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self)
524 {
525 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
526 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
527
528 // Non-gtkmmproc-generated custom classes implicitly call the default
529 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
530 // generated classes can use this optimisation, which avoids the unnecessary
531 // parameter conversions if there is no possibility of the virtual function
532 // being overridden:
533 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
534 {
535 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
536 if(obj) // This can be NULL during destruction.
537 {
538 try // Trap C++ exceptions which would normally be lost because this is a C callback.
539 {
540 // Call the virtual member method, which derived classes might override.
541 return static_cast<int>(obj->close_device_vfunccxx . . $ Gst/AudioRingBuffer#close_device_vfunc(c9857a73d68e59ba).());
542 }
543 catch(...)
544 {
545 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
546 }
547 }
548 }
549
550 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
551 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).
552 );
553
554 // Call the original underlying C function:
555 if(base && base->close_device)
556 return (*base->close_device)(self);
557
558 using RTypecxx . . $ Gst/AudioRingBuffer_Class#close_device_vfunc_callback(46a8c182b61d1e73).RType# = gboolean;
559 return RTypecxx . . $ Gst/AudioRingBuffer_Class#close_device_vfunc_callback(46a8c182b61d1e73).RType#();
560 }
561 gboolean AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::start_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#start_vfunc_callback(46a8c182b61d1e73).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self)
562 {
563 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
564 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
565
566 // Non-gtkmmproc-generated custom classes implicitly call the default
567 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
568 // generated classes can use this optimisation, which avoids the unnecessary
569 // parameter conversions if there is no possibility of the virtual function
570 // being overridden:
571 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
572 {
573 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
574 if(obj) // This can be NULL during destruction.
575 {
576 try // Trap C++ exceptions which would normally be lost because this is a C callback.
577 {
578 // Call the virtual member method, which derived classes might override.
579 return static_cast<int>(obj->start_vfunccxx . . $ Gst/AudioRingBuffer#start_vfunc(c9857a73d68e59ba).());
580 }
581 catch(...)
582 {
583 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
584 }
585 }
586 }
587
588 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
589 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).
590 );
591
592 // Call the original underlying C function:
593 if(base && base->start)
594 return (*base->start)(self);
595
596 using RTypecxx . . $ Gst/AudioRingBuffer_Class#start_vfunc_callback(46a8c182b61d1e73).RType# = gboolean;
597 return RTypecxx . . $ Gst/AudioRingBuffer_Class#start_vfunc_callback(46a8c182b61d1e73).RType#();
598 }
599 gboolean AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::pause_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#pause_vfunc_callback(46a8c182b61d1e73).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self)
600 {
601 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
602 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
603
604 // Non-gtkmmproc-generated custom classes implicitly call the default
605 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
606 // generated classes can use this optimisation, which avoids the unnecessary
607 // parameter conversions if there is no possibility of the virtual function
608 // being overridden:
609 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
610 {
611 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
612 if(obj) // This can be NULL during destruction.
613 {
614 try // Trap C++ exceptions which would normally be lost because this is a C callback.
615 {
616 // Call the virtual member method, which derived classes might override.
617 return static_cast<int>(obj->pause_vfunccxx . . $ Gst/AudioRingBuffer#pause_vfunc(c9857a73d68e59ba).());
618 }
619 catch(...)
620 {
621 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
622 }
623 }
624 }
625
626 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
627 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).
628 );
629
630 // Call the original underlying C function:
631 if(base && base->pause)
632 return (*base->pause)(self);
633
634 using RTypecxx . . $ Gst/AudioRingBuffer_Class#pause_vfunc_callback(46a8c182b61d1e73).RType# = gboolean;
635 return RTypecxx . . $ Gst/AudioRingBuffer_Class#pause_vfunc_callback(46a8c182b61d1e73).RType#();
636 }
637 gboolean AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::resume_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#resume_vfunc_callback(46a8c182b61d1e73).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self)
638 {
639 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
640 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
641
642 // Non-gtkmmproc-generated custom classes implicitly call the default
643 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
644 // generated classes can use this optimisation, which avoids the unnecessary
645 // parameter conversions if there is no possibility of the virtual function
646 // being overridden:
647 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
648 {
649 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
650 if(obj) // This can be NULL during destruction.
651 {
652 try // Trap C++ exceptions which would normally be lost because this is a C callback.
653 {
654 // Call the virtual member method, which derived classes might override.
655 return static_cast<int>(obj->resume_vfunccxx . . $ Gst/AudioRingBuffer#resume_vfunc(c9857a73d68e59ba).());
656 }
657 catch(...)
658 {
659 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
660 }
661 }
662 }
663
664 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
665 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).
666 );
667
668 // Call the original underlying C function:
669 if(base && base->resume)
670 return (*base->resume)(self);
671
672 using RTypecxx . . $ Gst/AudioRingBuffer_Class#resume_vfunc_callback(46a8c182b61d1e73).RType# = gboolean;
673 return RTypecxx . . $ Gst/AudioRingBuffer_Class#resume_vfunc_callback(46a8c182b61d1e73).RType#();
674 }
675 gboolean AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::stop_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#stop_vfunc_callback(46a8c182b61d1e73).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self)
676 {
677 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
678 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
679
680 // Non-gtkmmproc-generated custom classes implicitly call the default
681 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
682 // generated classes can use this optimisation, which avoids the unnecessary
683 // parameter conversions if there is no possibility of the virtual function
684 // being overridden:
685 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
686 {
687 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
688 if(obj) // This can be NULL during destruction.
689 {
690 try // Trap C++ exceptions which would normally be lost because this is a C callback.
691 {
692 // Call the virtual member method, which derived classes might override.
693 return static_cast<int>(obj->stop_vfunccxx . . $ Gst/AudioRingBuffer#stop_vfunc(c9857a73d68e59ba).());
694 }
695 catch(...)
696 {
697 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
698 }
699 }
700 }
701
702 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
703 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).
704 );
705
706 // Call the original underlying C function:
707 if(base && base->stop)
708 return (*base->stop)(self);
709
710 using RTypecxx . . $ Gst/AudioRingBuffer_Class#stop_vfunc_callback(46a8c182b61d1e73).RType# = gboolean;
711 return RTypecxx . . $ Gst/AudioRingBuffer_Class#stop_vfunc_callback(46a8c182b61d1e73).RType#();
712 }
713 guint AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::delay_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#delay_vfunc_callback(4048963686f92380).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self)
714 {
715 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
716 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
717
718 // Non-gtkmmproc-generated custom classes implicitly call the default
719 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
720 // generated classes can use this optimisation, which avoids the unnecessary
721 // parameter conversions if there is no possibility of the virtual function
722 // being overridden:
723 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
724 {
725 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
726 if(obj) // This can be NULL during destruction.
727 {
728 try // Trap C++ exceptions which would normally be lost because this is a C callback.
729 {
730 // Call the virtual member method, which derived classes might override.
731 return obj->delay_vfunccxx . . $ Gst/AudioRingBuffer#delay_vfunc(db52760e79bf9054).();
732 }
733 catch(...)
734 {
735 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
736 }
737 }
738 }
739
740 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
741 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).
742 );
743
744 // Call the original underlying C function:
745 if(base && base->delay)
746 return (*base->delay)(self);
747
748 using RTypecxx . . $ Gst/AudioRingBuffer_Class#delay_vfunc_callback(4048963686f92380).RType# = guint;
749 return RTypecxx . . $ Gst/AudioRingBuffer_Class#delay_vfunc_callback(4048963686f92380).RType#();
750 }
751 gboolean AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::activate_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#activate_vfunc_callback(6659c6e5c84731f1).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self, gboolean active)
752 {
753 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
754 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
755
756 // Non-gtkmmproc-generated custom classes implicitly call the default
757 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
758 // generated classes can use this optimisation, which avoids the unnecessary
759 // parameter conversions if there is no possibility of the virtual function
760 // being overridden:
761 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
762 {
763 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
764 if(obj) // This can be NULL during destruction.
765 {
766 try // Trap C++ exceptions which would normally be lost because this is a C callback.
767 {
768 // Call the virtual member method, which derived classes might override.
769 return static_cast<int>(obj->activate_vfunccxx . . $ Gst/AudioRingBuffer#activate_vfunc(efaadfb7dc14930a).(active
770 ));
771 }
772 catch(...)
773 {
774 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
775 }
776 }
777 }
778
779 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
780 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).
781 );
782
783 // Call the original underlying C function:
784 if(base && base->activate)
785 return (*base->activate)(self, active);
786
787 using RTypecxx . . $ Gst/AudioRingBuffer_Class#activate_vfunc_callback(6659c6e5c84731f1).RType# = gboolean;
788 return RTypecxx . . $ Gst/AudioRingBuffer_Class#activate_vfunc_callback(6659c6e5c84731f1).RType#();
789 }
790 void AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::clear_all_vfunc_callbackcxx . . $ Gst/AudioRingBuffer_Class#clear_all_vfunc_callback(671b48d56da96fb).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* self)
791 {
792 const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>(
793 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self));
794
795 // Non-gtkmmproc-generated custom classes implicitly call the default
796 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
797 // generated classes can use this optimisation, which avoids the unnecessary
798 // parameter conversions if there is no possibility of the virtual function
799 // being overridden:
800 if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).())
801 {
802 const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioRingBuffer_Class#CppObjectType#* const>(obj_base);
803 if(obj) // This can be NULL during destruction.
804 {
805 try // Trap C++ exceptions which would normally be lost because this is a C callback.
806 {
807 // Call the virtual member method, which derived classes might override.
808 obj->clear_all_vfunccxx . . $ Gst/AudioRingBuffer#clear_all_vfunc(49f6e7a06ebc5aa8).();
809 return;
810 }
811 catch(...)
812 {
813 Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).();
814 }
815 }
816 }
817
818 BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer_Class#BaseClassType#*>(
819 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).
820 );
821
822 // Call the original underlying C function:
823 if(base && base->clear_all)
824 (*base->clear_all)(self);
825 }
826
827
828 Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* AudioRingBuffer_Classcxx . . $ Gst/AudioRingBuffer_Class#::wrap_newcxx . . $ Gst/AudioRingBuffer_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object)
829 {
830 return new AudioRingBuffercxx . . $ Gst/AudioRingBuffer#((GstAudioRingBuffercxx . . $ GstAudioRingBuffer#*)object);
831 }
832
833
834 /* The implementation: */
835
836 GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::gobj_copycxx . . $ Gst/AudioRingBuffer#gobj_copy(8c1b48b5779409a3).()
837 {
838 referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).();
839 return gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).();
840 }
841
842 AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#AudioRingBuffer(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params)
843 :
844 Gstcxx . . $ Gst/::Objectcxx . . $ Gst/Object#(construct_params)
845 {
846
847 }
848
849 AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#AudioRingBuffer(671b48d56da96fb).(GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* castitem)
850 :
851 Gstcxx . . $ Gst/::Objectcxx . . $ Gst/Object#((GstObjectcxx . . $ GstObject#*)(castitem))
852 {}
853
854
855 AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#AudioRingBuffer(fab5520b3a283855).(AudioRingBuffercxx . . $ Gst/AudioRingBuffer#&& src) noexcept
856 : Gstcxx . . $ Gst/::Objectcxx . . $ Gst/Object#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src))
857 {}
858
859 AudioRingBuffercxx . . $ Gst/AudioRingBuffer#& AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::operatorcxx . . $ Gst/AudioRingBuffer#`operator=`(e984f2e73f9b1dc2).=(AudioRingBuffercxx . . $ Gst/AudioRingBuffer#&& src) noexcept
860 {
861 Gstcxx . . $ Gst/::Objectcxx . . $ Gst/Object#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src));
862 return *this;
863 }
864
865
866 AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::~cxx . . $ Gst/AudioRingBuffer#`~AudioRingBuffer`(ced63f7c635d850d).AudioRingBuffercxx . . $ Gst/AudioRingBuffer#() noexcept
867 {}
868
869
870 AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::CppClassTypecxx . . $ Gst/AudioRingBuffer#CppClassType# AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::audioringbuffer_class_cxx . . $ Gst/AudioRingBuffer#audioringbuffer_class_.; // initialize static member
871
872 GType AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::get_typecxx . . $ Gst/AudioRingBuffer#get_type(f708dce9a8856c70).()
873 {
874 return audioringbuffer_class_cxx . . $ Gst/AudioRingBuffer#audioringbuffer_class_..initcxx . . $ Gst/AudioRingBuffer_Class#init(bf348c0cd369184d).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).();
875 }
876
877
878 GType AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::get_base_typecxx . . $ Gst/AudioRingBuffer#get_base_type(f708dce9a8856c70).()
879 {
880 return gst_audio_ring_buffer_get_type();
881 }
882
883 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::acquirecxx . . $ Gst/AudioRingBuffer#acquire(edab929607edba42).(Gstcxx . . $ Gst/::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#& spec)
884 {
885 return gst_audio_ring_buffer_acquire(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), spec.gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).());
886 }
887
888 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::releasecxx . . $ Gst/AudioRingBuffer#release(c9857a73d68e59ba).()
889 {
890 return gst_audio_ring_buffer_release(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).());
891 }
892
893 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::is_acquiredcxx . . $ Gst/AudioRingBuffer#is_acquired(50ce9a9e25b4a850).() const
894 {
895 return gst_audio_ring_buffer_is_acquired(const_cast<GstAudioRingBuffercxx . . $ GstAudioRingBuffer#*>(gobjcxx . . $ Gst/AudioRingBuffer#gobj(c29027e408f30171).()));
896 }
897
898 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::activatecxx . . $ Gst/AudioRingBuffer#activate(efaadfb7dc14930a).(bool active)
899 {
900 return gst_audio_ring_buffer_activate(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), static_cast<int>(active));
901 }
902
903 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::is_activecxx . . $ Gst/AudioRingBuffer#is_active(50ce9a9e25b4a850).() const
904 {
905 return gst_audio_ring_buffer_is_active(const_cast<GstAudioRingBuffercxx . . $ GstAudioRingBuffer#*>(gobjcxx . . $ Gst/AudioRingBuffer#gobj(c29027e408f30171).()));
906 }
907
908 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::startcxx . . $ Gst/AudioRingBuffer#start(c9857a73d68e59ba).()
909 {
910 return gst_audio_ring_buffer_start(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).());
911 }
912
913 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::pausecxx . . $ Gst/AudioRingBuffer#pause(c9857a73d68e59ba).()
914 {
915 return gst_audio_ring_buffer_pause(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).());
916 }
917
918 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::stopcxx . . $ Gst/AudioRingBuffer#stop(c9857a73d68e59ba).()
919 {
920 return gst_audio_ring_buffer_stop(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).());
921 }
922
923 guint AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::get_delaycxx . . $ Gst/AudioRingBuffer#get_delay(ddd8539a2fcdd4ce).() const
924 {
925 return gst_audio_ring_buffer_delay(const_cast<GstAudioRingBuffercxx . . $ GstAudioRingBuffer#*>(gobjcxx . . $ Gst/AudioRingBuffer#gobj(c29027e408f30171).()));
926 }
927
928 guint64 AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::get_samples_donecxx . . $ Gst/AudioRingBuffer#get_samples_done(fe4d2d262d4164a8).() const
929 {
930 return gst_audio_ring_buffer_samples_done(const_cast<GstAudioRingBuffercxx . . $ GstAudioRingBuffer#*>(gobjcxx . . $ Gst/AudioRingBuffer#gobj(c29027e408f30171).()));
931 }
932
933 void AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::set_samplecxx . . $ Gst/AudioRingBuffer#set_sample(2c44cd906ae4e829).(guint64 sample)
934 {
935 gst_audio_ring_buffer_set_sample(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), sample);
936 }
937
938 void AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::set_channel_positioncxx . . $ Gst/AudioRingBuffer#set_channel_position(8ab3304180f22adb).(const Gstcxx . . $ Gst/::AudioChannelPositioncxx . . $ Gst/AudioChannelPosition#& position)
939 {
940 gst_audio_ring_buffer_set_channel_positions(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), (const GstAudioChannelPosition*)(&position));
941 }
942
943 gboolean AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::is_flushingcxx . . $ Gst/AudioRingBuffer#is_flushing(b126dc7c1de90089).()
944 {
945 return gst_audio_ring_buffer_is_flushing(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).());
946 }
947
948 void AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::set_timestampcxx . . $ Gst/AudioRingBuffer#set_timestamp(74c49f0b1fbaf3d5).(gint readseg, ClockTimecxx . . $ Gst/ClockTime# timestamp)
949 {
950 gst_audio_ring_buffer_set_timestamp(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), readseg, ((GstClockTime)(timestamp)));
951 }
952
953 guint AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::commitcxx . . $ Gst/AudioRingBuffer#commit(2017c97f1311618e).(guint64& sample, const stdcxx . . $ std/::vectorcxx . . $ std/vector#<guint8>& data, int in_samples, int out_samples, int& accum)
954 {
955 return gst_audio_ring_buffer_commit(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), &(sample), Glibcxx . . $ Glib/::ArrayHandlercxx . . $ Glib/ArrayHandler#<guint8>::vector_to_arraycxx . . $ Glib/ArrayHandler#vector_to_array(3cda0708ca2cbec3).(data).datacxx . . $ Glib/Container_Helpers/ArrayKeeper#data(43621e3adc348eb).(), in_samples, out_samples, &(accum));
956 }
957
958 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::convertcxx . . $ Gst/AudioRingBuffer#convert(71f0eba8c39f35a9).(Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format# src_fmt, gint64 src_val, Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format# dest_fmt, gint64& dest_val) const
959 {
960 return gst_audio_ring_buffer_convert(const_cast<GstAudioRingBuffercxx . . $ GstAudioRingBuffer#*>(gobjcxx . . $ Gst/AudioRingBuffer#gobj(c29027e408f30171).()), ((GstFormat)(src_fmt)), src_val, ((GstFormat)(dest_fmt)), &(dest_val));
961 }
962
963 guint AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::readcxx . . $ Gst/AudioRingBuffer#read(42ab8d1bbf44ab7).(guint64 sample, const stdcxx . . $ std/::vectorcxx . . $ std/vector#<guint8>& data, guint len, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& timestamp)
964 {
965 return gst_audio_ring_buffer_read(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), sample, Glibcxx . . $ Glib/::ArrayHandlercxx . . $ Glib/ArrayHandler#<guint8>::vector_to_arraycxx . . $ Glib/ArrayHandler#vector_to_array(3cda0708ca2cbec3).(data).datacxx . . $ Glib/Container_Helpers/ArrayKeeper#data(43621e3adc348eb).(), len, (GstClockTime*)(&timestamp));
966 }
967
968 void AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::clearcxx . . $ Gst/AudioRingBuffer#clear(d4f767463ce0a6b3).(int segment)
969 {
970 gst_audio_ring_buffer_clear(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), segment);
971 }
972
973 void AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::clear_allcxx . . $ Gst/AudioRingBuffer#clear_all(49f6e7a06ebc5aa8).()
974 {
975 gst_audio_ring_buffer_clear_all(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).());
976 }
977
978 void AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::advancecxx . . $ Gst/AudioRingBuffer#advance(cb2f890c2fdad230).(guint advance)
979 {
980 gst_audio_ring_buffer_advance(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), advance);
981 }
982
983 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::close_devicecxx . . $ Gst/AudioRingBuffer#close_device(c9857a73d68e59ba).()
984 {
985 return gst_audio_ring_buffer_close_device(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).());
986 }
987
988 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::open_devicecxx . . $ Gst/AudioRingBuffer#open_device(c9857a73d68e59ba).()
989 {
990 return gst_audio_ring_buffer_open_device(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).());
991 }
992
993 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::device_is_opencxx . . $ Gst/AudioRingBuffer#device_is_open(50ce9a9e25b4a850).() const
994 {
995 return gst_audio_ring_buffer_device_is_open(const_cast<GstAudioRingBuffercxx . . $ GstAudioRingBuffer#*>(gobjcxx . . $ Gst/AudioRingBuffer#gobj(c29027e408f30171).()));
996 }
997
998 void AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::set_may_startcxx . . $ Gst/AudioRingBuffer#set_may_start(b45ddcbc8423892c).(bool allowed)
999 {
1000 gst_audio_ring_buffer_may_start(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), static_cast<int>(allowed));
1001 }
1002
1003 bool AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::parse_capscxx . . $ Gst/AudioRingBuffer#parse_caps(fe5a44e4b135bcb4).(Gstcxx . . $ Gst/::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#& p1, const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps)
1004 {
1005 return gst_audio_ring_buffer_parse_caps(p1.gobjcxx . . $ Gst/AudioRingBufferSpec#gobj(e5c6e585505e0498).(), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(caps));
1006 }
1007
1008 void AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::set_flushingcxx . . $ Gst/AudioRingBuffer#set_flushing(b45ddcbc8423892c).(bool flushing)
1009 {
1010 gst_audio_ring_buffer_set_flushing(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(), static_cast<int>(flushing));
1011 }
1012
1013
1014 bool Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::open_device_vfunccxx . . $ Gst/AudioRingBuffer#open_device_vfunc(c9857a73d68e59ba).()
1015 {
1016 const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
1017 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).
1018 );
1019
1020 if(base && base->open_device)
1021 {
1022 bool retval((*base->open_device)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).()));
1023 return retval;
1024 }
1025
1026 using RTypecxx . . $ Gst/AudioRingBuffer#open_device_vfunc(c9857a73d68e59ba).RType# = bool;
1027 return RTypecxx . . $ Gst/AudioRingBuffer#open_device_vfunc(c9857a73d68e59ba).RType#();
1028 }
1029 bool Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::release_vfunccxx . . $ Gst/AudioRingBuffer#release_vfunc(c9857a73d68e59ba).()
1030 {
1031 const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
1032 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).
1033 );
1034
1035 if(base && base->release)
1036 {
1037 bool retval((*base->release)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).()));
1038 return retval;
1039 }
1040
1041 using RTypecxx . . $ Gst/AudioRingBuffer#release_vfunc(c9857a73d68e59ba).RType# = bool;
1042 return RTypecxx . . $ Gst/AudioRingBuffer#release_vfunc(c9857a73d68e59ba).RType#();
1043 }
1044 bool Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::close_device_vfunccxx . . $ Gst/AudioRingBuffer#close_device_vfunc(c9857a73d68e59ba).()
1045 {
1046 const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
1047 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).
1048 );
1049
1050 if(base && base->close_device)
1051 {
1052 bool retval((*base->close_device)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).()));
1053 return retval;
1054 }
1055
1056 using RTypecxx . . $ Gst/AudioRingBuffer#close_device_vfunc(c9857a73d68e59ba).RType# = bool;
1057 return RTypecxx . . $ Gst/AudioRingBuffer#close_device_vfunc(c9857a73d68e59ba).RType#();
1058 }
1059 bool Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::start_vfunccxx . . $ Gst/AudioRingBuffer#start_vfunc(c9857a73d68e59ba).()
1060 {
1061 const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
1062 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).
1063 );
1064
1065 if(base && base->start)
1066 {
1067 bool retval((*base->start)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).()));
1068 return retval;
1069 }
1070
1071 using RTypecxx . . $ Gst/AudioRingBuffer#start_vfunc(c9857a73d68e59ba).RType# = bool;
1072 return RTypecxx . . $ Gst/AudioRingBuffer#start_vfunc(c9857a73d68e59ba).RType#();
1073 }
1074 bool Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::pause_vfunccxx . . $ Gst/AudioRingBuffer#pause_vfunc(c9857a73d68e59ba).()
1075 {
1076 const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
1077 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).
1078 );
1079
1080 if(base && base->pause)
1081 {
1082 bool retval((*base->pause)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).()));
1083 return retval;
1084 }
1085
1086 using RTypecxx . . $ Gst/AudioRingBuffer#pause_vfunc(c9857a73d68e59ba).RType# = bool;
1087 return RTypecxx . . $ Gst/AudioRingBuffer#pause_vfunc(c9857a73d68e59ba).RType#();
1088 }
1089 bool Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::resume_vfunccxx . . $ Gst/AudioRingBuffer#resume_vfunc(c9857a73d68e59ba).()
1090 {
1091 const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
1092 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).
1093 );
1094
1095 if(base && base->resume)
1096 {
1097 bool retval((*base->resume)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).()));
1098 return retval;
1099 }
1100
1101 using RTypecxx . . $ Gst/AudioRingBuffer#resume_vfunc(c9857a73d68e59ba).RType# = bool;
1102 return RTypecxx . . $ Gst/AudioRingBuffer#resume_vfunc(c9857a73d68e59ba).RType#();
1103 }
1104 bool Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::stop_vfunccxx . . $ Gst/AudioRingBuffer#stop_vfunc(c9857a73d68e59ba).()
1105 {
1106 const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
1107 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).
1108 );
1109
1110 if(base && base->stop)
1111 {
1112 bool retval((*base->stop)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).()));
1113 return retval;
1114 }
1115
1116 using RTypecxx . . $ Gst/AudioRingBuffer#stop_vfunc(c9857a73d68e59ba).RType# = bool;
1117 return RTypecxx . . $ Gst/AudioRingBuffer#stop_vfunc(c9857a73d68e59ba).RType#();
1118 }
1119 guint Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::delay_vfunccxx . . $ Gst/AudioRingBuffer#delay_vfunc(db52760e79bf9054).()
1120 {
1121 const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
1122 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).
1123 );
1124
1125 if(base && base->delay)
1126 {
1127 guint retval((*base->delay)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).()));
1128 return retval;
1129 }
1130
1131 using RTypecxx . . $ Gst/AudioRingBuffer#delay_vfunc(db52760e79bf9054).RType# = guint;
1132 return RTypecxx . . $ Gst/AudioRingBuffer#delay_vfunc(db52760e79bf9054).RType#();
1133 }
1134 bool Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::activate_vfunccxx . . $ Gst/AudioRingBuffer#activate_vfunc(efaadfb7dc14930a).(bool active)
1135 {
1136 const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
1137 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).
1138 );
1139
1140 if(base && base->activate)
1141 {
1142 bool retval((*base->activate)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).(),static_cast<int>(active)));
1143 return retval;
1144 }
1145
1146 using RTypecxx . . $ Gst/AudioRingBuffer#activate_vfunc(efaadfb7dc14930a).RType# = bool;
1147 return RTypecxx . . $ Gst/AudioRingBuffer#activate_vfunc(efaadfb7dc14930a).RType#();
1148 }
1149 void Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#::clear_all_vfunccxx . . $ Gst/AudioRingBuffer#clear_all_vfunc(49f6e7a06ebc5aa8).()
1150 {
1151 const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioRingBuffer#BaseClassType#*>(
1152 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).
1153 );
1154
1155 if(base && base->clear_all)
1156 {
1157 (*base->clear_all)(gobjcxx . . $ Gst/AudioRingBuffer#gobj(8c1b48b5779409a3).());
1158 }
1159 }
1160
1161
1162 } // namespace Gst
1163
1164