| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/audioinfo.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/audioinfo.h>cxx . . $ `<file>/gstreamer/gstreamermm/audioinfo.h`/ |
| 7 | #include <gstreamermm/private/audioinfo_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/audioinfo_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/caps.h>cxx . . $ `<file>/gstreamer/gstreamermm/caps.h`/ |
| 30 | #include <gstreamermm/handle_error.h>cxx . . $ `<file>/gstreamer/gstreamermm/handle_error.h`/ |
| 31 | |
| 32 | namespace Gstcxx . . $ Gst/ |
| 33 | { |
| 34 | |
| 35 | AudioInfocxx . . $ Gst/AudioInfo#::AudioInfocxx . . $ Gst/AudioInfo#AudioInfo(67154a57170ef2a4).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps) |
| 36 | : AudioInfocxx . . $ Gst/AudioInfo#() |
| 37 | { |
| 38 | if (!from_capscxx . . $ Gst/AudioInfo#from_caps(f64280a2813dcce4).(caps)) |
| 39 | { |
| 40 | gstreamermm_handle_errorcxx . . $ Gst/gstreamermm_handle_error(1ff0bff2cee2bc51).( |
| 41 | "Gst::AudioInfo::AudioInfo(const Glib::RefPtr<const Gst::Caps>&): " |
| 42 | "Failed to construct Gst::AudioInfo from caps: " +cxx . . $ Glib/operator+(733d8bb4b557ea40). caps->cxx . . $ Glib/RefPtr#`operator->`(34d6acfd341ba7ab).to_stringcxx . . $ Gst/Caps#to_string(fff0f585954e56f3).()); |
| 43 | |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | } |
| 48 | |
| 49 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/audioinfo.cc`/ |
| 50 | { |
| 51 | } // anonymous namespace |
| 52 | |
| 53 | // static |
| 54 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::AudioFlags>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 55 | { |
| 56 | return gst_audio_flags_get_type(); |
| 57 | } |
| 58 | |
| 59 | // static |
| 60 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::AudioLayout>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 61 | { |
| 62 | return gst_audio_layout_get_type(); |
| 63 | } |
| 64 | |
| 65 | |
| 66 | namespace Glibcxx . . $ Glib/ |
| 67 | { |
| 68 | |
| 69 | Gstcxx . . $ Gst/::AudioInfocxx . . $ Gst/AudioInfo# wrapcxx . . $ Glib/wrap(186b8a918d30436a).(GstAudioInfo* object, bool take_copy) |
| 70 | { |
| 71 | return Gstcxx . . $ Gst/AudioInfo#AudioInfo(8df71ef4af0f0172).::AudioInfocxx . . $ Gst/AudioInfo#(object, take_copy); |
| 72 | } |
| 73 | |
| 74 | } // namespace Glib |
| 75 | |
| 76 | |
| 77 | namespace Gstcxx . . $ Gst/ |
| 78 | { |
| 79 | |
| 80 | |
| 81 | // static |
| 82 | GType AudioInfocxx . . $ Gst/AudioInfo#::get_typecxx . . $ Gst/AudioInfo#get_type(f708dce9a8856c70).() |
| 83 | { |
| 84 | return gst_audio_info_get_type(); |
| 85 | } |
| 86 | |
| 87 | AudioInfocxx . . $ Gst/AudioInfo#::AudioInfocxx . . $ Gst/AudioInfo#AudioInfo(49f6e7a06ebc5aa8).() |
| 88 | : |
| 89 | gobject_cxx . . $ Gst/AudioInfo#gobject_. (gst_audio_info_new()) |
| 90 | {} |
| 91 | |
| 92 | AudioInfocxx . . $ Gst/AudioInfo#::AudioInfocxx . . $ Gst/AudioInfo#AudioInfo(f99e2ce961b44cfb).(const AudioInfocxx . . $ Gst/AudioInfo#& other) |
| 93 | : |
| 94 | gobject_cxx . . $ Gst/AudioInfo#gobject_. ((other.gobject_cxx . . $ Gst/AudioInfo#gobject_.) ? gst_audio_info_copy(other.gobject_cxx . . $ Gst/AudioInfo#gobject_.) : nullptr) |
| 95 | {} |
| 96 | |
| 97 | AudioInfocxx . . $ Gst/AudioInfo#::AudioInfocxx . . $ Gst/AudioInfo#AudioInfo(9c39e361e4e6c2dd).(AudioInfocxx . . $ Gst/AudioInfo#&& other) noexcept |
| 98 | : |
| 99 | gobject_cxx . . $ Gst/AudioInfo#gobject_.(other.gobject_cxx . . $ Gst/AudioInfo#gobject_.) |
| 100 | { |
| 101 | other.gobject_cxx . . $ Gst/AudioInfo#gobject_. = nullptr; |
| 102 | } |
| 103 | |
| 104 | AudioInfocxx . . $ Gst/AudioInfo#& AudioInfocxx . . $ Gst/AudioInfo#::operatorcxx . . $ Gst/AudioInfo#`operator=`(1a071e740c2f7f00).=(AudioInfocxx . . $ Gst/AudioInfo#&& other) noexcept |
| 105 | { |
| 106 | AudioInfocxx . . $ Gst/AudioInfo# tempcxx . . $ Gst/AudioInfo#AudioInfo(f99e2ce961b44cfb). (other); |
| 107 | swapcxx . . $ Gst/AudioInfo#swap(c0402145d015f630).(temp); |
| 108 | return *this; |
| 109 | } |
| 110 | |
| 111 | AudioInfocxx . . $ Gst/AudioInfo#::AudioInfocxx . . $ Gst/AudioInfo#AudioInfo(8df71ef4af0f0172).(GstAudioInfo* gobject, bool make_a_copy) |
| 112 | : |
| 113 | // For BoxedType wrappers, make_a_copy is true by default. The static |
| 114 | // BoxedType wrappers must always take a copy, thus make_a_copy = true |
| 115 | // ensures identical behaviour if the default argument is used. |
| 116 | gobject_cxx . . $ Gst/AudioInfo#gobject_. ((make_a_copy && gobject) ? gst_audio_info_copy(gobject) : gobject) |
| 117 | {} |
| 118 | |
| 119 | AudioInfocxx . . $ Gst/AudioInfo#& AudioInfocxx . . $ Gst/AudioInfo#::operatorcxx . . $ Gst/AudioInfo#`operator=`(418a46c186823bb8).=(const AudioInfocxx . . $ Gst/AudioInfo#& other) |
| 120 | { |
| 121 | AudioInfocxx . . $ Gst/AudioInfo# tempcxx . . $ Gst/AudioInfo#AudioInfo(f99e2ce961b44cfb). (other); |
| 122 | swapcxx . . $ Gst/AudioInfo#swap(c0402145d015f630).(temp); |
| 123 | return *this; |
| 124 | } |
| 125 | |
| 126 | AudioInfocxx . . $ Gst/AudioInfo#::~cxx . . $ Gst/AudioInfo#`~AudioInfo`(ced63f7c635d850d).AudioInfocxx . . $ Gst/AudioInfo#() noexcept |
| 127 | { |
| 128 | if(gobject_cxx . . $ Gst/AudioInfo#gobject_.) |
| 129 | gst_audio_info_free(gobject_cxx . . $ Gst/AudioInfo#gobject_.); |
| 130 | } |
| 131 | |
| 132 | void AudioInfocxx . . $ Gst/AudioInfo#::swapcxx . . $ Gst/AudioInfo#swap(c0402145d015f630).(AudioInfocxx . . $ Gst/AudioInfo#& other) noexcept |
| 133 | { |
| 134 | stdcxx . . $ std/::swapcxx . . $ std/swap(c75b8fd57d7c2e06).(gobject_cxx . . $ Gst/AudioInfo#gobject_., other.gobject_cxx . . $ Gst/AudioInfo#gobject_.); |
| 135 | } |
| 136 | |
| 137 | GstAudioInfo* AudioInfocxx . . $ Gst/AudioInfo#::gobj_copycxx . . $ Gst/AudioInfo#gobj_copy(d46f0615a1796e79).() const |
| 138 | { |
| 139 | return gst_audio_info_copy(gobject_cxx . . $ Gst/AudioInfo#gobject_.); |
| 140 | } |
| 141 | |
| 142 | |
| 143 | bool AudioInfocxx . . $ Gst/AudioInfo#::is_equalcxx . . $ Gst/AudioInfo#is_equal(80854666e73ab84b).(const Gstcxx . . $ Gst/::AudioInfocxx . . $ Gst/AudioInfo#& other) const |
| 144 | { |
| 145 | return gst_audio_info_is_equal(const_cast<GstAudioInfo*>(gobjcxx . . $ Gst/AudioInfo#gobj(f15a4bc4e44e9e33).()), other.gobjcxx . . $ Gst/AudioInfo#gobj(f15a4bc4e44e9e33).()); |
| 146 | } |
| 147 | |
| 148 | void AudioInfocxx . . $ Gst/AudioInfo#::initcxx . . $ Gst/AudioInfo#init(49f6e7a06ebc5aa8).() |
| 149 | { |
| 150 | gst_audio_info_init(gobjcxx . . $ Gst/AudioInfo#gobj(eb03a130b2781152).()); |
| 151 | } |
| 152 | |
| 153 | bool AudioInfocxx . . $ Gst/AudioInfo#::from_capscxx . . $ Gst/AudioInfo#from_caps(f64280a2813dcce4).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#>& caps) |
| 154 | { |
| 155 | return gst_audio_info_from_caps(gobjcxx . . $ Gst/AudioInfo#gobj(eb03a130b2781152).(), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(1fce0cab713be4a0).(caps)); |
| 156 | } |
| 157 | |
| 158 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Capscxx . . $ Gst/Caps#> AudioInfocxx . . $ Gst/AudioInfo#::to_capscxx . . $ Gst/AudioInfo#to_caps(4265aad93b8ec881).() const |
| 159 | { |
| 160 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(cf037a2e82e55e6b).(gst_audio_info_to_caps(const_cast<GstAudioInfo*>(gobjcxx . . $ Gst/AudioInfo#gobj(f15a4bc4e44e9e33).()))); |
| 161 | } |
| 162 | |
| 163 | bool AudioInfocxx . . $ Gst/AudioInfo#::convertcxx . . $ Gst/AudioInfo#convert(71f0eba8c39f35a9).(Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format# fmt, gint64 src_val, Gstcxx . . $ Gst/::Formatcxx . . $ Gst/Format# dest_fmt, gint64& dest_val) const |
| 164 | { |
| 165 | return gst_audio_info_convert(const_cast<GstAudioInfo*>(gobjcxx . . $ Gst/AudioInfo#gobj(f15a4bc4e44e9e33).()), ((GstFormat)(fmt)), src_val, ((GstFormat)(dest_fmt)), &(dest_val)); |
| 166 | } |
| 167 | |
| 168 | void AudioInfocxx . . $ Gst/AudioInfo#::set_formatcxx . . $ Gst/AudioInfo#set_format(c94051293b5e185f).(Gstcxx . . $ Gst/::AudioFormatcxx . . $ Gst/AudioFormat# format, int rate, int channels, const Gstcxx . . $ Gst/::AudioChannelPositioncxx . . $ Gst/AudioChannelPosition# * position) |
| 169 | { |
| 170 | gst_audio_info_set_format(gobjcxx . . $ Gst/AudioInfo#gobj(eb03a130b2781152).(), ((GstAudioFormat)(format)), rate, channels, reinterpret_cast<const GstAudioChannelPosition*>(position)); |
| 171 | } |
| 172 | |
| 173 | Gstcxx . . $ Gst/::AudioFlagscxx . . $ Gst/AudioFlags# AudioInfocxx . . $ Gst/AudioInfo#::get_flagscxx . . $ Gst/AudioInfo#get_flags(8c3a0a5a27fb980e).() const |
| 174 | { |
| 175 | return ((Gstcxx . . $ Gst/::AudioFlagscxx . . $ Gst/AudioFlags#)(gobjcxx . . $ Gst/AudioInfo#gobj(f15a4bc4e44e9e33).()->flagscxx . . $ _GstAudioInfo#flags.)); |
| 176 | } |
| 177 | |
| 178 | void AudioInfocxx . . $ Gst/AudioInfo#::set_flagscxx . . $ Gst/AudioInfo#set_flags(4b65f5203191b97a).(const Gstcxx . . $ Gst/::AudioFlagscxx . . $ Gst/AudioFlags#& value) |
| 179 | { |
| 180 | gobjcxx . . $ Gst/AudioInfo#gobj(eb03a130b2781152).()->flagscxx . . $ _GstAudioInfo#flags. = ((GstAudioFlags)(value)); |
| 181 | } |
| 182 | |
| 183 | Gstcxx . . $ Gst/::AudioLayoutcxx . . $ Gst/AudioLayout# AudioInfocxx . . $ Gst/AudioInfo#::get_layoutcxx . . $ Gst/AudioInfo#get_layout(5f96b242a7563e27).() const |
| 184 | { |
| 185 | return ((Gstcxx . . $ Gst/::AudioLayoutcxx . . $ Gst/AudioLayout#)(gobjcxx . . $ Gst/AudioInfo#gobj(f15a4bc4e44e9e33).()->layoutcxx . . $ _GstAudioInfo#layout.)); |
| 186 | } |
| 187 | |
| 188 | void AudioInfocxx . . $ Gst/AudioInfo#::set_layoutcxx . . $ Gst/AudioInfo#set_layout(730f3f4f087702).(const Gstcxx . . $ Gst/::AudioLayoutcxx . . $ Gst/AudioLayout#& value) |
| 189 | { |
| 190 | gobjcxx . . $ Gst/AudioInfo#gobj(eb03a130b2781152).()->layoutcxx . . $ _GstAudioInfo#layout. = ((GstAudioLayout)(value)); |
| 191 | } |
| 192 | |
| 193 | int AudioInfocxx . . $ Gst/AudioInfo#::get_ratecxx . . $ Gst/AudioInfo#get_rate(455f465bc33b4cdf).() const |
| 194 | { |
| 195 | return gobjcxx . . $ Gst/AudioInfo#gobj(f15a4bc4e44e9e33).()->ratecxx . . $ _GstAudioInfo#rate.; |
| 196 | } |
| 197 | |
| 198 | void AudioInfocxx . . $ Gst/AudioInfo#::set_ratecxx . . $ Gst/AudioInfo#set_rate(794bbbca577513a2).(const int& value) |
| 199 | { |
| 200 | gobjcxx . . $ Gst/AudioInfo#gobj(eb03a130b2781152).()->ratecxx . . $ _GstAudioInfo#rate. = value; |
| 201 | } |
| 202 | |
| 203 | int AudioInfocxx . . $ Gst/AudioInfo#::get_channelscxx . . $ Gst/AudioInfo#get_channels(455f465bc33b4cdf).() const |
| 204 | { |
| 205 | return gobjcxx . . $ Gst/AudioInfo#gobj(f15a4bc4e44e9e33).()->channelscxx . . $ _GstAudioInfo#channels.; |
| 206 | } |
| 207 | |
| 208 | void AudioInfocxx . . $ Gst/AudioInfo#::set_channelscxx . . $ Gst/AudioInfo#set_channels(794bbbca577513a2).(const int& value) |
| 209 | { |
| 210 | gobjcxx . . $ Gst/AudioInfo#gobj(eb03a130b2781152).()->channelscxx . . $ _GstAudioInfo#channels. = value; |
| 211 | } |
| 212 | |
| 213 | int AudioInfocxx . . $ Gst/AudioInfo#::get_bpfcxx . . $ Gst/AudioInfo#get_bpf(455f465bc33b4cdf).() const |
| 214 | { |
| 215 | return gobjcxx . . $ Gst/AudioInfo#gobj(f15a4bc4e44e9e33).()->bpfcxx . . $ _GstAudioInfo#bpf.; |
| 216 | } |
| 217 | |
| 218 | void AudioInfocxx . . $ Gst/AudioInfo#::set_bpfcxx . . $ Gst/AudioInfo#set_bpf(794bbbca577513a2).(const int& value) |
| 219 | { |
| 220 | gobjcxx . . $ Gst/AudioInfo#gobj(eb03a130b2781152).()->bpfcxx . . $ _GstAudioInfo#bpf. = value; |
| 221 | } |
| 222 | |
| 223 | const Gstcxx . . $ Gst/::AudioFormatInfocxx . . $ Gst/AudioFormatInfo# AudioInfocxx . . $ Gst/AudioInfo#::get_finfocxx . . $ Gst/AudioInfo#get_finfo(927a07c7471951ed).() const |
| 224 | { |
| 225 | return Gstcxx . . $ Gst/::AudioFormatInfocxx . . $ Gst/AudioFormatInfo#(gobjcxx . . $ Gst/AudioInfo#gobj(f15a4bc4e44e9e33).()->finfocxx . . $ _GstAudioInfo#finfo.); |
| 226 | } |
| 227 | |
| 228 | |
| 229 | } // namespace Gst |
| 230 | |
| 231 |