| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/audioclock.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/audioclock.h>cxx . . $ `<file>/gstreamer/gstreamermm/audioclock.h`/ |
| 7 | #include <gstreamermm/private/audioclock_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/audioclock_p.h`/ |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2008-2016 The gstreamermm Development Team |
| 13 | * |
| 14 | * This library is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU Lesser General Public |
| 16 | * License as published by the Free Software Foundation; either |
| 17 | * version 2.1 of the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This library is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | * Lesser General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU Lesser General Public |
| 25 | * License along with this library; if not, write to the Free |
| 26 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 | */ |
| 28 | |
| 29 | #include <gst/audio/gstaudioclock.h> |
| 30 | |
| 31 | |
| 32 | // TODO: remove this check after we require at least gstreamer 1.12 |
| 33 | #if GST_VERSION_MINORcxx . . $ `<external>/6417008504855301400/gstversion.h:57:9`! < 12 |
| 34 | #define GSTMM_AUDIO_CLOCK_CAST(obj) GST_CLOCK(obj) |
| 35 | #else |
| 36 | #define GSTMM_AUDIO_CLOCK_CASTcxx . . $ `gstreamer/gstreamermm/audioclock.cc:36:9`!(obj) GST_AUDIO_CLOCKcxx . . $ `<external>/5230226128396219/gstaudioclock.h:37:9`!(obj) |
| 37 | #endif |
| 38 | |
| 39 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/audioclock.cc`/ |
| 40 | { |
| 41 | |
| 42 | extern "C" |
| 43 | { |
| 44 | |
| 45 | static GstClockTime AudioClock_GetTime_gstreamermm_callback(GstClockcxx . . $ GstClock#* clock, void* data) |
| 46 | { |
| 47 | Gstcxx . . $ Gst/::AudioClockcxx . . $ Gst/AudioClock#::SlotGetTimecxx . . $ Gst/AudioClock#SlotGetTime#* the_slot = static_cast<Gstcxx . . $ Gst/::AudioClockcxx . . $ Gst/AudioClock#::SlotGetTimecxx . . $ Gst/AudioClock#SlotGetTime#*>(data); |
| 48 | |
| 49 | try |
| 50 | { |
| 51 | return (*the_slot)(cxx . . $ sigc/slot1#`operator()`(9ee06a69519573d9).Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(72ee10a641f5814b).(clock, true)); |
| 52 | } |
| 53 | catch(...) |
| 54 | { |
| 55 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 56 | } |
| 57 | |
| 58 | return 0; // arbitrary value |
| 59 | } |
| 60 | |
| 61 | } // extern "C" |
| 62 | |
| 63 | } // anonymous namespace |
| 64 | |
| 65 | namespace Gstcxx . . $ Gst/ |
| 66 | { |
| 67 | |
| 68 | AudioClockcxx . . $ Gst/AudioClock#::AudioClockcxx . . $ Gst/AudioClock#AudioClock(b55e214a3fb3d022).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, const SlotGetTimecxx . . $ Gst/AudioClock#SlotGetTime#& time_slot) |
| 69 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 70 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#(nullptr), |
| 71 | Gstcxx . . $ Gst/::SystemClockcxx . . $ Gst/SystemClock#(Glibcxx . . $ Glib/ConstructParams#ConstructParams(88d8205c725482fb).::ConstructParamscxx . . $ Glib/ConstructParams#(audioclock_class_cxx . . $ Gst/AudioClock#audioclock_class_..initcxx . . $ Gst/AudioClock_Class#init(bf348c0cd369184d).(), "name",(name.emptycxx . . $ Glib/ustring#empty(50ce9a9e25b4a850).() ? static_cast<char*>(0) : name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).()), nullptr)) |
| 72 | { |
| 73 | // The slot is dynamically allocated because it is called each time the time |
| 74 | // is gotten. |
| 75 | m_slotcxx . . $ Gst/AudioClock#m_slot..resetcxx . . $ std/unique_ptr#reset(c8c3025d73122d7d).(new SlotGetTimecxx . . $ Gst/AudioClock#SlotGetTime#(time_slot)); |
| 76 | |
| 77 | // The following lines are taken verbatim from gst_audio_clock_new() after |
| 78 | // the call to g_object_new() because it seems that bug #545782 will not be |
| 79 | // accepted. |
| 80 | gobjcxx . . $ Gst/AudioClock#gobj(d91209a0fc286a5b).()->funccxx . . $ _GstAudioClock#func. = &AudioClock_GetTime_gstreamermm_callback; |
| 81 | gobjcxx . . $ Gst/AudioClock#gobj(d91209a0fc286a5b).()->user_datacxx . . $ _GstAudioClock#user_data. = m_slotcxx . . $ Gst/AudioClock#m_slot..getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).(); |
| 82 | } |
| 83 | |
| 84 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# AudioClockcxx . . $ Gst/AudioClock#::adjustcxx . . $ Gst/AudioClock#adjust(ecdaa1632f49f591).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# time) |
| 85 | { |
| 86 | return static_cast<Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#>(gst_audio_clock_adjust(GSTMM_AUDIO_CLOCK_CASTcxx . . $ `gstreamer/gstreamermm/audioclock.cc:36:9`!(gobj()), static_cast<GstClockTime>(time))); |
| 87 | } |
| 88 | |
| 89 | Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# AudioClockcxx . . $ Gst/AudioClock#::get_timecxx . . $ Gst/AudioClock#get_time(fe4d2d262d4164a8).() const |
| 90 | { |
| 91 | return static_cast<Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#>(gst_audio_clock_get_time(GSTMM_AUDIO_CLOCK_CASTcxx . . $ `gstreamer/gstreamermm/audioclock.cc:36:9`!(gobj()))); |
| 92 | } |
| 93 | |
| 94 | void AudioClockcxx . . $ Gst/AudioClock#::invalidatecxx . . $ Gst/AudioClock#invalidate(49f6e7a06ebc5aa8).() |
| 95 | { |
| 96 | gst_audio_clock_invalidate(GSTMM_AUDIO_CLOCK_CASTcxx . . $ `gstreamer/gstreamermm/audioclock.cc:36:9`!(gobj())); |
| 97 | } |
| 98 | |
| 99 | } //namespace Gst |
| 100 | |
| 101 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/audioclock.cc`/ |
| 102 | { |
| 103 | } // anonymous namespace |
| 104 | |
| 105 | |
| 106 | namespace Glibcxx . . $ Glib/ |
| 107 | { |
| 108 | |
| 109 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioClockcxx . . $ Gst/AudioClock#> wrapcxx . . $ Glib/wrap(da3e7887a3dc4ea9).(GstAudioClockcxx . . $ GstAudioClock#* object, bool take_copy) |
| 110 | { |
| 111 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioClockcxx . . $ Gst/AudioClock#>( dynamic_cast<Gstcxx . . $ Gst/::AudioClockcxx . . $ Gst/AudioClock#*> (Glibcxx . . $ Glib/::wrap_autocxx . . $ Glib/wrap_auto(fd1af59aa43b0601). ((GObjectcxx . . $ GObject#*)(object), take_copy)) ); |
| 112 | //We use dynamic_cast<> in case of multiple inheritance. |
| 113 | } |
| 114 | |
| 115 | } /* namespace Glib */ |
| 116 | |
| 117 | |
| 118 | namespace Gstcxx . . $ Gst/ |
| 119 | { |
| 120 | |
| 121 | |
| 122 | /* The *_Class implementation: */ |
| 123 | |
| 124 | const Glibcxx . . $ Glib/::Classcxx . . $ Glib/Class#& AudioClock_Classcxx . . $ Gst/AudioClock_Class#::initcxx . . $ Gst/AudioClock_Class#init(bf348c0cd369184d).() |
| 125 | { |
| 126 | if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary |
| 127 | { |
| 128 | // Glib::Class has to know the class init function to clone custom types. |
| 129 | class_init_func_cxx . . $ Glib/Class#class_init_func_. = &AudioClock_Classcxx . . $ Gst/AudioClock_Class#::class_init_functioncxx . . $ Gst/AudioClock_Class#class_init_function(6c58c5e2437d25a2).; |
| 130 | |
| 131 | // This is actually just optimized away, apparently with no harm. |
| 132 | // Make sure that the parent type has been created. |
| 133 | //CppClassParent::CppObjectType::get_type(); |
| 134 | |
| 135 | // Create the wrapper type, with the same class/instance size as the base type. |
| 136 | register_derived_typecxx . . $ Glib/Class#register_derived_type(2c44cd906ae4e829).(gst_audio_clock_get_type()); |
| 137 | |
| 138 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 139 | |
| 140 | } |
| 141 | |
| 142 | return *this; |
| 143 | } |
| 144 | |
| 145 | |
| 146 | void AudioClock_Classcxx . . $ Gst/AudioClock_Class#::class_init_functioncxx . . $ Gst/AudioClock_Class#class_init_function(6c58c5e2437d25a2).(void* g_class, void* class_data) |
| 147 | { |
| 148 | const auto klass = static_cast<BaseClassTypecxx . . $ Gst/AudioClock_Class#BaseClassType#*>(g_class); |
| 149 | CppClassParentcxx . . $ Gst/AudioClock_Class#CppClassParent#::class_init_functioncxx . . $ Gst/SystemClock_Class#class_init_function(6c58c5e2437d25a2).(klass, class_data); |
| 150 | |
| 151 | |
| 152 | } |
| 153 | |
| 154 | |
| 155 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* AudioClock_Classcxx . . $ Gst/AudioClock_Class#::wrap_newcxx . . $ Gst/AudioClock_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object) |
| 156 | { |
| 157 | return new AudioClockcxx . . $ Gst/AudioClock#((GstAudioClockcxx . . $ GstAudioClock#*)object); |
| 158 | } |
| 159 | |
| 160 | |
| 161 | /* The implementation: */ |
| 162 | |
| 163 | GstAudioClockcxx . . $ GstAudioClock#* AudioClockcxx . . $ Gst/AudioClock#::gobj_copycxx . . $ Gst/AudioClock#gobj_copy(d91209a0fc286a5b).() |
| 164 | { |
| 165 | referencecxx . . $ Glib/ObjectBase#reference(83f5f38750778ac8).(); |
| 166 | return gobjcxx . . $ Gst/AudioClock#gobj(d91209a0fc286a5b).(); |
| 167 | } |
| 168 | |
| 169 | AudioClockcxx . . $ Gst/AudioClock#::AudioClockcxx . . $ Gst/AudioClock#AudioClock(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params) |
| 170 | : |
| 171 | Gstcxx . . $ Gst/::SystemClockcxx . . $ Gst/SystemClock#(construct_params) |
| 172 | { |
| 173 | |
| 174 | } |
| 175 | |
| 176 | AudioClockcxx . . $ Gst/AudioClock#::AudioClockcxx . . $ Gst/AudioClock#AudioClock(5264439cbb72255b).(GstAudioClockcxx . . $ GstAudioClock#* castitem) |
| 177 | : |
| 178 | Gstcxx . . $ Gst/::SystemClockcxx . . $ Gst/SystemClock#((GstSystemClockcxx . . $ GstSystemClock#*)(castitem)) |
| 179 | {} |
| 180 | |
| 181 | |
| 182 | AudioClockcxx . . $ Gst/AudioClock#::AudioClockcxx . . $ Gst/AudioClock#AudioClock(3ea7464f5bf41c62).(AudioClockcxx . . $ Gst/AudioClock#&& src) noexcept |
| 183 | : Gstcxx . . $ Gst/::SystemClockcxx . . $ Gst/SystemClock#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)) |
| 184 | {} |
| 185 | |
| 186 | AudioClockcxx . . $ Gst/AudioClock#& AudioClockcxx . . $ Gst/AudioClock#::operatorcxx . . $ Gst/AudioClock#`operator=`(623138c7432abf96).=(AudioClockcxx . . $ Gst/AudioClock#&& src) noexcept |
| 187 | { |
| 188 | Gstcxx . . $ Gst/::SystemClockcxx . . $ Gst/SystemClock#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)); |
| 189 | return *this; |
| 190 | } |
| 191 | |
| 192 | |
| 193 | AudioClockcxx . . $ Gst/AudioClock#::~cxx . . $ Gst/AudioClock#`~AudioClock`(ced63f7c635d850d).AudioClockcxx . . $ Gst/AudioClock#() noexcept |
| 194 | {} |
| 195 | |
| 196 | |
| 197 | AudioClockcxx . . $ Gst/AudioClock#::CppClassTypecxx . . $ Gst/AudioClock#CppClassType# AudioClockcxx . . $ Gst/AudioClock#::audioclock_class_cxx . . $ Gst/AudioClock#audioclock_class_.; // initialize static member |
| 198 | |
| 199 | GType AudioClockcxx . . $ Gst/AudioClock#::get_typecxx . . $ Gst/AudioClock#get_type(f708dce9a8856c70).() |
| 200 | { |
| 201 | return audioclock_class_cxx . . $ Gst/AudioClock#audioclock_class_..initcxx . . $ Gst/AudioClock_Class#init(bf348c0cd369184d).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).(); |
| 202 | } |
| 203 | |
| 204 | |
| 205 | GType AudioClockcxx . . $ Gst/AudioClock#::get_base_typecxx . . $ Gst/AudioClock#get_base_type(f708dce9a8856c70).() |
| 206 | { |
| 207 | return gst_audio_clock_get_type(); |
| 208 | } |
| 209 | |
| 210 | |
| 211 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<AudioClockcxx . . $ Gst/AudioClock#> AudioClockcxx . . $ Gst/AudioClock#::createcxx . . $ Gst/AudioClock#create(243b3f2a1d7704).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, const SlotGetTimecxx . . $ Gst/AudioClock#SlotGetTime#& time_slot) |
| 212 | { |
| 213 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<AudioClockcxx . . $ Gst/AudioClock#>( new AudioClockcxx . . $ Gst/AudioClock#(name, time_slot) ); |
| 214 | } |
| 215 | |
| 216 | void AudioClockcxx . . $ Gst/AudioClock#::resetcxx . . $ Gst/AudioClock#reset(2c44cd906ae4e829).(Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime# time) |
| 217 | { |
| 218 | gst_audio_clock_reset(gobjcxx . . $ Gst/AudioClock#gobj(d91209a0fc286a5b).(), ((GstClockTime)(time))); |
| 219 | } |
| 220 | |
| 221 | |
| 222 | } // namespace Gst |
| 223 | |
| 224 |