| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/audiobasesink.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/audiobasesink.h>cxx . . $ `<file>/gstreamer/gstreamermm/audiobasesink.h`/ |
| 7 | #include <gstreamermm/private/audiobasesink_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/audiobasesink_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/audioringbuffer.h>cxx . . $ `<file>/gstreamer/gstreamermm/audioringbuffer.h`/ |
| 30 | |
| 31 | namespace Gstcxx . . $ Gst/ |
| 32 | { |
| 33 | |
| 34 | extern "C" |
| 35 | { |
| 36 | |
| 37 | static void AudioBaseSink_CustomSlaving_gstreamermm_callback(GstAudioBaseSinkcxx . . $ GstAudioBaseSink#* sink, GstClockTime etime, GstClockTime itime, |
| 38 | GstClockTimeDiff *requested_skew, GstAudioBaseSinkDiscontReason discont_reason, gpointer user_data) |
| 39 | { |
| 40 | Gstcxx . . $ Gst/::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::SlotCustomSlavingcxx . . $ Gst/AudioBaseSink#SlotCustomSlaving#* the_slot = static_cast<Gstcxx . . $ Gst/::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::SlotCustomSlavingcxx . . $ Gst/AudioBaseSink#SlotCustomSlaving#*>(user_data); |
| 41 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#> sink_wrapper = Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(532e3da58323172a).(sink, true); |
| 42 | try |
| 43 | { |
| 44 | (*the_slot)(cxx . . $ sigc/slot5#`operator()`(62a08e44b95d871f).sink_wrapper, static_cast<Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#>(etime), static_cast<Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#>(itime), |
| 45 | *requested_skew, static_cast<Gstcxx . . $ Gst/::AudioBaseSinkDiscontReasoncxx . . $ Gst/AudioBaseSinkDiscontReason#>(discont_reason)); |
| 46 | } |
| 47 | catch(...) |
| 48 | { |
| 49 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | static void AudioBaseSink_CustomSlaving_gstreamermm_callback_disconnect(gpointer data) |
| 54 | { |
| 55 | Gstcxx . . $ Gst/::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::SlotCustomSlavingcxx . . $ Gst/AudioBaseSink#SlotCustomSlaving#* the_slot = static_cast<Gstcxx . . $ Gst/::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::SlotCustomSlavingcxx . . $ Gst/AudioBaseSink#SlotCustomSlaving#*>(data); |
| 56 | |
| 57 | if(the_slot) |
| 58 | delete the_slot; |
| 59 | } |
| 60 | |
| 61 | } |
| 62 | |
| 63 | void AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::set_custom_slaving_callbackcxx . . $ Gst/AudioBaseSink#set_custom_slaving_callback(2816b02c61f39598).(const SlotCustomSlavingcxx . . $ Gst/AudioBaseSink#SlotCustomSlaving#& slot) |
| 64 | { |
| 65 | SlotCustomSlavingcxx . . $ Gst/AudioBaseSink#SlotCustomSlaving# *slot_copy = new SlotCustomSlavingcxx . . $ Gst/AudioBaseSink#SlotCustomSlaving#(slot); |
| 66 | |
| 67 | return gst_audio_base_sink_set_custom_slaving_callback(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).(), &AudioBaseSink_CustomSlaving_gstreamermm_callback, slot_copy, &AudioBaseSink_CustomSlaving_gstreamermm_callback_disconnect); |
| 68 | } |
| 69 | |
| 70 | } |
| 71 | |
| 72 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/audiobasesink.cc`/ |
| 73 | { |
| 74 | } // anonymous namespace |
| 75 | |
| 76 | // static |
| 77 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::AudioBaseSinkSlaveMethod>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 78 | { |
| 79 | return gst_audio_base_sink_slave_method_get_type(); |
| 80 | } |
| 81 | |
| 82 | |
| 83 | namespace Glibcxx . . $ Glib/ |
| 84 | { |
| 85 | |
| 86 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#> wrapcxx . . $ Glib/wrap(532e3da58323172a).(GstAudioBaseSinkcxx . . $ GstAudioBaseSink#* object, bool take_copy) |
| 87 | { |
| 88 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#>( dynamic_cast<Gstcxx . . $ Gst/::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#*> (Glibcxx . . $ Glib/::wrap_autocxx . . $ Glib/wrap_auto(fd1af59aa43b0601). ((GObjectcxx . . $ GObject#*)(object), take_copy)) ); |
| 89 | //We use dynamic_cast<> in case of multiple inheritance. |
| 90 | } |
| 91 | |
| 92 | } /* namespace Glib */ |
| 93 | |
| 94 | |
| 95 | namespace Gstcxx . . $ Gst/ |
| 96 | { |
| 97 | |
| 98 | |
| 99 | /* The *_Class implementation: */ |
| 100 | |
| 101 | const Glibcxx . . $ Glib/::Classcxx . . $ Glib/Class#& AudioBaseSink_Classcxx . . $ Gst/AudioBaseSink_Class#::initcxx . . $ Gst/AudioBaseSink_Class#init(bf348c0cd369184d).() |
| 102 | { |
| 103 | if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary |
| 104 | { |
| 105 | // Glib::Class has to know the class init function to clone custom types. |
| 106 | class_init_func_cxx . . $ Glib/Class#class_init_func_. = &AudioBaseSink_Classcxx . . $ Gst/AudioBaseSink_Class#::class_init_functioncxx . . $ Gst/AudioBaseSink_Class#class_init_function(6c58c5e2437d25a2).; |
| 107 | |
| 108 | // This is actually just optimized away, apparently with no harm. |
| 109 | // Make sure that the parent type has been created. |
| 110 | //CppClassParent::CppObjectType::get_type(); |
| 111 | |
| 112 | // Create the wrapper type, with the same class/instance size as the base type. |
| 113 | register_derived_typecxx . . $ Glib/Class#register_derived_type(2c44cd906ae4e829).(gst_audio_base_sink_get_type()); |
| 114 | |
| 115 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 116 | |
| 117 | } |
| 118 | |
| 119 | return *this; |
| 120 | } |
| 121 | |
| 122 | |
| 123 | void AudioBaseSink_Classcxx . . $ Gst/AudioBaseSink_Class#::class_init_functioncxx . . $ Gst/AudioBaseSink_Class#class_init_function(6c58c5e2437d25a2).(void* g_class, void* class_data) |
| 124 | { |
| 125 | const auto klass = static_cast<BaseClassTypecxx . . $ Gst/AudioBaseSink_Class#BaseClassType#*>(g_class); |
| 126 | CppClassParentcxx . . $ Gst/AudioBaseSink_Class#CppClassParent#::class_init_functioncxx . . $ Gst/BaseSink_Class#class_init_function(6c58c5e2437d25a2).(klass, class_data); |
| 127 | |
| 128 | klass->create_ringbuffercxx . . $ _GstAudioBaseSinkClass#create_ringbuffer. = &create_ringbuffer_vfunc_callbackcxx . . $ Gst/AudioBaseSink_Class#create_ringbuffer_vfunc_callback(ed102815a8fdf133).; |
| 129 | klass->payloadcxx . . $ _GstAudioBaseSinkClass#payload. = &payload_vfunc_callbackcxx . . $ Gst/AudioBaseSink_Class#payload_vfunc_callback(d71fe702e57e9237).; |
| 130 | |
| 131 | } |
| 132 | |
| 133 | GstAudioRingBuffercxx . . $ GstAudioRingBuffer#* AudioBaseSink_Classcxx . . $ Gst/AudioBaseSink_Class#::create_ringbuffer_vfunc_callbackcxx . . $ Gst/AudioBaseSink_Class#create_ringbuffer_vfunc_callback(ed102815a8fdf133).(GstAudioBaseSinkcxx . . $ GstAudioBaseSink#* self) |
| 134 | { |
| 135 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 136 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 137 | |
| 138 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 139 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 140 | // generated classes can use this optimisation, which avoids the unnecessary |
| 141 | // parameter conversions if there is no possibility of the virtual function |
| 142 | // being overridden: |
| 143 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 144 | { |
| 145 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioBaseSink_Class#CppObjectType#* const>(obj_base); |
| 146 | if(obj) // This can be NULL during destruction. |
| 147 | { |
| 148 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 149 | { |
| 150 | // Call the virtual member method, which derived classes might override. |
| 151 | return Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(obj->create_ring_buffer_vfunccxx . . $ Gst/AudioBaseSink#create_ring_buffer_vfunc(d6ad144582804c6a).()); |
| 152 | } |
| 153 | catch(...) |
| 154 | { |
| 155 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 156 | } |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | BaseClassTypecxx . . $ Gst/AudioBaseSink_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioBaseSink_Class#BaseClassType#*>( |
| 161 | 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). |
| 162 | ); |
| 163 | |
| 164 | // Call the original underlying C function: |
| 165 | if(base && base->create_ringbuffercxx . . $ _GstAudioBaseSinkClass#create_ringbuffer.) |
| 166 | return (*base->create_ringbuffercxx . . $ _GstAudioBaseSinkClass#create_ringbuffer.)(self); |
| 167 | |
| 168 | using RTypecxx . . $ Gst/AudioBaseSink_Class#create_ringbuffer_vfunc_callback(ed102815a8fdf133).RType# = GstAudioRingBuffercxx . . $ GstAudioRingBuffer#*; |
| 169 | return RTypecxx . . $ Gst/AudioBaseSink_Class#create_ringbuffer_vfunc_callback(ed102815a8fdf133).RType#(); |
| 170 | } |
| 171 | GstBuffer* AudioBaseSink_Classcxx . . $ Gst/AudioBaseSink_Class#::payload_vfunc_callbackcxx . . $ Gst/AudioBaseSink_Class#payload_vfunc_callback(d71fe702e57e9237).(GstAudioBaseSinkcxx . . $ GstAudioBaseSink#* self, GstBuffer* buffer) |
| 172 | { |
| 173 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 174 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 175 | |
| 176 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 177 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 178 | // generated classes can use this optimisation, which avoids the unnecessary |
| 179 | // parameter conversions if there is no possibility of the virtual function |
| 180 | // being overridden: |
| 181 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 182 | { |
| 183 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/AudioBaseSink_Class#CppObjectType#* const>(obj_base); |
| 184 | if(obj) // This can be NULL during destruction. |
| 185 | { |
| 186 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 187 | { |
| 188 | // Call the virtual member method, which derived classes might override. |
| 189 | return Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(obj->payload_vfunccxx . . $ Gst/AudioBaseSink#payload_vfunc(adec03162d3c0f20).(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(3c551c778c6a14a5).(buffer, true) |
| 190 | )); |
| 191 | } |
| 192 | catch(...) |
| 193 | { |
| 194 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | BaseClassTypecxx . . $ Gst/AudioBaseSink_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/AudioBaseSink_Class#BaseClassType#*>( |
| 200 | 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). |
| 201 | ); |
| 202 | |
| 203 | // Call the original underlying C function: |
| 204 | if(base && base->payloadcxx . . $ _GstAudioBaseSinkClass#payload.) |
| 205 | return (*base->payloadcxx . . $ _GstAudioBaseSinkClass#payload.)(self, buffer); |
| 206 | |
| 207 | using RTypecxx . . $ Gst/AudioBaseSink_Class#payload_vfunc_callback(d71fe702e57e9237).RType# = GstBuffer*; |
| 208 | return RTypecxx . . $ Gst/AudioBaseSink_Class#payload_vfunc_callback(d71fe702e57e9237).RType#(); |
| 209 | } |
| 210 | |
| 211 | |
| 212 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* AudioBaseSink_Classcxx . . $ Gst/AudioBaseSink_Class#::wrap_newcxx . . $ Gst/AudioBaseSink_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object) |
| 213 | { |
| 214 | return new AudioBaseSinkcxx . . $ Gst/AudioBaseSink#((GstAudioBaseSinkcxx . . $ GstAudioBaseSink#*)object); |
| 215 | } |
| 216 | |
| 217 | |
| 218 | /* The implementation: */ |
| 219 | |
| 220 | GstAudioBaseSinkcxx . . $ GstAudioBaseSink#* AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::gobj_copycxx . . $ Gst/AudioBaseSink#gobj_copy(7c66af03c56de9b6).() |
| 221 | { |
| 222 | referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).(); |
| 223 | return gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).(); |
| 224 | } |
| 225 | |
| 226 | AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#AudioBaseSink(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params) |
| 227 | : |
| 228 | Gstcxx . . $ Gst/::BaseSinkcxx . . $ Gst/BaseSink#(construct_params) |
| 229 | { |
| 230 | |
| 231 | } |
| 232 | |
| 233 | AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#AudioBaseSink(1e297da194b954db).(GstAudioBaseSinkcxx . . $ GstAudioBaseSink#* castitem) |
| 234 | : |
| 235 | Gstcxx . . $ Gst/::BaseSinkcxx . . $ Gst/BaseSink#((GstBaseSinkcxx . . $ GstBaseSink#*)(castitem)) |
| 236 | {} |
| 237 | |
| 238 | |
| 239 | AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#AudioBaseSink(3bd79d65374b2add).(AudioBaseSinkcxx . . $ Gst/AudioBaseSink#&& src) noexcept |
| 240 | : Gstcxx . . $ Gst/::BaseSinkcxx . . $ Gst/BaseSink#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)) |
| 241 | {} |
| 242 | |
| 243 | AudioBaseSinkcxx . . $ Gst/AudioBaseSink#& AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::operatorcxx . . $ Gst/AudioBaseSink#`operator=`(48cc5edf626ebb2d).=(AudioBaseSinkcxx . . $ Gst/AudioBaseSink#&& src) noexcept |
| 244 | { |
| 245 | Gstcxx . . $ Gst/::BaseSinkcxx . . $ Gst/BaseSink#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)); |
| 246 | return *this; |
| 247 | } |
| 248 | |
| 249 | |
| 250 | AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::~cxx . . $ Gst/AudioBaseSink#`~AudioBaseSink`(ced63f7c635d850d).AudioBaseSinkcxx . . $ Gst/AudioBaseSink#() noexcept |
| 251 | {} |
| 252 | |
| 253 | |
| 254 | AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::CppClassTypecxx . . $ Gst/AudioBaseSink#CppClassType# AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::audiobasesink_class_cxx . . $ Gst/AudioBaseSink#audiobasesink_class_.; // initialize static member |
| 255 | |
| 256 | GType AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::get_typecxx . . $ Gst/AudioBaseSink#get_type(f708dce9a8856c70).() |
| 257 | { |
| 258 | return audiobasesink_class_cxx . . $ Gst/AudioBaseSink#audiobasesink_class_..initcxx . . $ Gst/AudioBaseSink_Class#init(bf348c0cd369184d).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).(); |
| 259 | } |
| 260 | |
| 261 | |
| 262 | GType AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::get_base_typecxx . . $ Gst/AudioBaseSink#get_base_type(f708dce9a8856c70).() |
| 263 | { |
| 264 | return gst_audio_base_sink_get_type(); |
| 265 | } |
| 266 | |
| 267 | |
| 268 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#> AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::get_provided_clockcxx . . $ Gst/AudioBaseSink#get_provided_clock(675458b535f1101e).() |
| 269 | { |
| 270 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#> ref_ptr(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(72ee10a641f5814b).(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).()->provided_clockcxx . . $ _GstAudioBaseSink#provided_clock.)); |
| 271 | |
| 272 | if(ref_ptr) |
| 273 | ref_ptr->cxx . . $ Glib/RefPtr#`operator->`(34d6acfd341ba7ab).referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).(); |
| 274 | |
| 275 | return ref_ptrcxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).; |
| 276 | } |
| 277 | |
| 278 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#> AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::get_provided_clockcxx . . $ Gst/AudioBaseSink#get_provided_clock(d423a9683e0d77bf).() const |
| 279 | { |
| 280 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#> ref_ptrcxx . . $ Glib/RefPtr#RefPtr(9e4c744904342adc).(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(72ee10a641f5814b).(gobjcxx . . $ Gst/AudioBaseSink#gobj(6b1724b3c1363335).()->provided_clockcxx . . $ _GstAudioBaseSink#provided_clock.)); |
| 281 | |
| 282 | if(ref_ptr) |
| 283 | ref_ptr->cxx . . $ Glib/RefPtr#`operator->`(34d6acfd341ba7ab).referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).(); |
| 284 | |
| 285 | return ref_ptrcxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).; |
| 286 | } |
| 287 | |
| 288 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#> AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::create_ring_buffercxx . . $ Gst/AudioBaseSink#create_ring_buffer(d6ad144582804c6a).() |
| 289 | { |
| 290 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(e75858f8ee84af8f).(gst_audio_base_sink_create_ringbuffer(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).())); |
| 291 | } |
| 292 | |
| 293 | void AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::set_provide_clockcxx . . $ Gst/AudioBaseSink#set_provide_clock(b45ddcbc8423892c).(bool provide) |
| 294 | { |
| 295 | gst_audio_base_sink_set_provide_clock(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).(), static_cast<int>(provide)); |
| 296 | } |
| 297 | |
| 298 | bool AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::get_provide_clockcxx . . $ Gst/AudioBaseSink#get_provide_clock(50ce9a9e25b4a850).() const |
| 299 | { |
| 300 | return gst_audio_base_sink_get_provide_clock(const_cast<GstAudioBaseSinkcxx . . $ GstAudioBaseSink#*>(gobjcxx . . $ Gst/AudioBaseSink#gobj(6b1724b3c1363335).())); |
| 301 | } |
| 302 | |
| 303 | void AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::set_slave_methodcxx . . $ Gst/AudioBaseSink#set_slave_method(a335feb249cc9be9).(Gstcxx . . $ Gst/::AudioBaseSinkSlaveMethodcxx . . $ Gst/AudioBaseSinkSlaveMethod# method) |
| 304 | { |
| 305 | gst_audio_base_sink_set_slave_method(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).(), ((GstAudioBaseSinkSlaveMethod)(method))); |
| 306 | } |
| 307 | |
| 308 | Gstcxx . . $ Gst/::AudioBaseSinkSlaveMethodcxx . . $ Gst/AudioBaseSinkSlaveMethod# AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::get_slave_methodcxx . . $ Gst/AudioBaseSink#get_slave_method(392063f6383dfbab).() const |
| 309 | { |
| 310 | return ((Gstcxx . . $ Gst/::AudioBaseSinkSlaveMethodcxx . . $ Gst/AudioBaseSinkSlaveMethod#)(gst_audio_base_sink_get_slave_method(const_cast<GstAudioBaseSinkcxx . . $ GstAudioBaseSink#*>(gobjcxx . . $ Gst/AudioBaseSink#gobj(6b1724b3c1363335).())))); |
| 311 | } |
| 312 | |
| 313 | gint64 AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::get_drift_tolerancecxx . . $ Gst/AudioBaseSink#get_drift_tolerance(57a65ae535d7db84).() const |
| 314 | { |
| 315 | return gst_audio_base_sink_get_drift_tolerance(const_cast<GstAudioBaseSinkcxx . . $ GstAudioBaseSink#*>(gobjcxx . . $ Gst/AudioBaseSink#gobj(6b1724b3c1363335).())); |
| 316 | } |
| 317 | |
| 318 | void AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::set_drift_tolerancecxx . . $ Gst/AudioBaseSink#set_drift_tolerance(1624ee8275b10bda).(gint64 drift_tolerance) |
| 319 | { |
| 320 | gst_audio_base_sink_set_drift_tolerance(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).(), drift_tolerance); |
| 321 | } |
| 322 | |
| 323 | void AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::set_discont_waitcxx . . $ Gst/AudioBaseSink#set_discont_wait(2c44cd906ae4e829).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# discont_wait) |
| 324 | { |
| 325 | gst_audio_base_sink_set_discont_wait(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).(), ((GstClockTime)(discont_wait))); |
| 326 | } |
| 327 | |
| 328 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::get_discont_waitcxx . . $ Gst/AudioBaseSink#get_discont_wait(fe4d2d262d4164a8).() const |
| 329 | { |
| 330 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_audio_base_sink_get_discont_wait(const_cast<GstAudioBaseSinkcxx . . $ GstAudioBaseSink#*>(gobjcxx . . $ Gst/AudioBaseSink#gobj(6b1724b3c1363335).())))); |
| 331 | } |
| 332 | |
| 333 | void AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::set_alignment_thresholdcxx . . $ Gst/AudioBaseSink#set_alignment_threshold(2c44cd906ae4e829).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# alignment_threshold) |
| 334 | { |
| 335 | gst_audio_base_sink_set_alignment_threshold(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).(), ((GstClockTime)(alignment_threshold))); |
| 336 | } |
| 337 | |
| 338 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::get_alignment_thresholdcxx . . $ Gst/AudioBaseSink#get_alignment_threshold(fe4d2d262d4164a8).() const |
| 339 | { |
| 340 | return ((Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#)(gst_audio_base_sink_get_alignment_threshold(const_cast<GstAudioBaseSinkcxx . . $ GstAudioBaseSink#*>(gobjcxx . . $ Gst/AudioBaseSink#gobj(6b1724b3c1363335).())))); |
| 341 | } |
| 342 | |
| 343 | void AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::report_device_failurecxx . . $ Gst/AudioBaseSink#report_device_failure(49f6e7a06ebc5aa8).() |
| 344 | { |
| 345 | gst_audio_base_sink_report_device_failure(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).()); |
| 346 | } |
| 347 | |
| 348 | |
| 349 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< guint64 > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_alignment_thresholdcxx . . $ Gst/AudioBaseSink#property_alignment_threshold(d486e8c449033ce8).() |
| 350 | { |
| 351 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< guint64 >(this, "alignment-threshold"); |
| 352 | } |
| 353 | |
| 354 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< guint64 > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_alignment_thresholdcxx . . $ Gst/AudioBaseSink#property_alignment_threshold(626cd103ac35282).() const |
| 355 | { |
| 356 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< guint64 >(this, "alignment-threshold"); |
| 357 | } |
| 358 | |
| 359 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< gint64 > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_buffer_timecxx . . $ Gst/AudioBaseSink#property_buffer_time(6b69460574dd6a75).() |
| 360 | { |
| 361 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< gint64 >(this, "buffer-time"); |
| 362 | } |
| 363 | |
| 364 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< gint64 > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_buffer_timecxx . . $ Gst/AudioBaseSink#property_buffer_time(593ac6380b69f4e9).() const |
| 365 | { |
| 366 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< gint64 >(this, "buffer-time"); |
| 367 | } |
| 368 | |
| 369 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< bool > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_can_activate_pullcxx . . $ Gst/AudioBaseSink#property_can_activate_pull(962e4b383dc974dc).() |
| 370 | { |
| 371 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< bool >(this, "can-activate-pull"); |
| 372 | } |
| 373 | |
| 374 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_can_activate_pullcxx . . $ Gst/AudioBaseSink#property_can_activate_pull(bb701360c56d84c7).() const |
| 375 | { |
| 376 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool >(this, "can-activate-pull"); |
| 377 | } |
| 378 | |
| 379 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< guint64 > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_discont_waitcxx . . $ Gst/AudioBaseSink#property_discont_wait(d486e8c449033ce8).() |
| 380 | { |
| 381 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< guint64 >(this, "discont-wait"); |
| 382 | } |
| 383 | |
| 384 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< guint64 > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_discont_waitcxx . . $ Gst/AudioBaseSink#property_discont_wait(626cd103ac35282).() const |
| 385 | { |
| 386 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< guint64 >(this, "discont-wait"); |
| 387 | } |
| 388 | |
| 389 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< gint64 > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_drift_tolerancecxx . . $ Gst/AudioBaseSink#property_drift_tolerance(6b69460574dd6a75).() |
| 390 | { |
| 391 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< gint64 >(this, "drift-tolerance"); |
| 392 | } |
| 393 | |
| 394 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< gint64 > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_drift_tolerancecxx . . $ Gst/AudioBaseSink#property_drift_tolerance(593ac6380b69f4e9).() const |
| 395 | { |
| 396 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< gint64 >(this, "drift-tolerance"); |
| 397 | } |
| 398 | |
| 399 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< gint64 > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_latency_timecxx . . $ Gst/AudioBaseSink#property_latency_time(6b69460574dd6a75).() |
| 400 | { |
| 401 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< gint64 >(this, "latency-time"); |
| 402 | } |
| 403 | |
| 404 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< gint64 > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_latency_timecxx . . $ Gst/AudioBaseSink#property_latency_time(593ac6380b69f4e9).() const |
| 405 | { |
| 406 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< gint64 >(this, "latency-time"); |
| 407 | } |
| 408 | |
| 409 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< bool > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_provide_clockcxx . . $ Gst/AudioBaseSink#property_provide_clock(962e4b383dc974dc).() |
| 410 | { |
| 411 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< bool >(this, "provide-clock"); |
| 412 | } |
| 413 | |
| 414 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_provide_clockcxx . . $ Gst/AudioBaseSink#property_provide_clock(bb701360c56d84c7).() const |
| 415 | { |
| 416 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool >(this, "provide-clock"); |
| 417 | } |
| 418 | |
| 419 | Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< Gstcxx . . $ Gst/::AudioBaseSinkSlaveMethodcxx . . $ Gst/AudioBaseSinkSlaveMethod# > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_slave_methodcxx . . $ Gst/AudioBaseSink#property_slave_method(a578b7c511a5755f).() |
| 420 | { |
| 421 | return Glibcxx . . $ Glib/PropertyProxy#PropertyProxy(8fef7c1e3cce9580).::PropertyProxycxx . . $ Glib/PropertyProxy#< Gstcxx . . $ Gst/::AudioBaseSinkSlaveMethodcxx . . $ Gst/AudioBaseSinkSlaveMethod# >(this, "slave-method"); |
| 422 | } |
| 423 | |
| 424 | Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< Gstcxx . . $ Gst/::AudioBaseSinkSlaveMethodcxx . . $ Gst/AudioBaseSinkSlaveMethod# > AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::property_slave_methodcxx . . $ Gst/AudioBaseSink#property_slave_method(eecca572200d50ca).() const |
| 425 | { |
| 426 | return Glibcxx . . $ Glib/PropertyProxy_ReadOnly#PropertyProxy_ReadOnly(80da6e7c9d760f8a).::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< Gstcxx . . $ Gst/::AudioBaseSinkSlaveMethodcxx . . $ Gst/AudioBaseSinkSlaveMethod# >(this, "slave-method"); |
| 427 | } |
| 428 | |
| 429 | |
| 430 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#> Gstcxx . . $ Gst/::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::create_ring_buffer_vfunccxx . . $ Gst/AudioBaseSink#create_ring_buffer_vfunc(d6ad144582804c6a).() |
| 431 | { |
| 432 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioBaseSink#BaseClassType#*>( |
| 433 | 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). |
| 434 | ); |
| 435 | |
| 436 | if(base && base->create_ringbuffercxx . . $ _GstAudioBaseSinkClass#create_ringbuffer.) |
| 437 | { |
| 438 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#> retval(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(e75858f8ee84af8f).((*base->create_ringbuffercxx . . $ _GstAudioBaseSinkClass#create_ringbuffer.)(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).()))); |
| 439 | return retvalcxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).; |
| 440 | } |
| 441 | |
| 442 | using RTypecxx . . $ Gst/AudioBaseSink#create_ring_buffer_vfunc(d6ad144582804c6a).RType# = Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#>; |
| 443 | return RTypecxx . . $ Glib/RefPtr#RefPtr(ced63f7c635d850d).(); |
| 444 | } |
| 445 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Buffercxx . . $ Gst/Buffer#> Gstcxx . . $ Gst/::AudioBaseSinkcxx . . $ Gst/AudioBaseSink#::payload_vfunccxx . . $ Gst/AudioBaseSink#payload_vfunc(adec03162d3c0f20).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Buffercxx . . $ Gst/Buffer#>& buffer) |
| 446 | { |
| 447 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/AudioBaseSink#BaseClassType#*>( |
| 448 | 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). |
| 449 | ); |
| 450 | |
| 451 | if(base && base->payloadcxx . . $ _GstAudioBaseSinkClass#payload.) |
| 452 | { |
| 453 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Buffercxx . . $ Gst/Buffer#> retval(Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(3c551c778c6a14a5).((*base->payloadcxx . . $ _GstAudioBaseSinkClass#payload.)(gobjcxx . . $ Gst/AudioBaseSink#gobj(7c66af03c56de9b6).(),Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(buffer)))); |
| 454 | return retvalcxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).; |
| 455 | } |
| 456 | |
| 457 | using RTypecxx . . $ Gst/AudioBaseSink#payload_vfunc(adec03162d3c0f20).RType# = Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Buffercxx . . $ Gst/Buffer#>; |
| 458 | return RTypecxx . . $ Glib/RefPtr#RefPtr(ced63f7c635d850d).(); |
| 459 | } |
| 460 | |
| 461 | |
| 462 | } // namespace Gst |
| 463 | |
| 464 |