| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/audioformat.h> |
| 7 | #include <gstreamermm/private/audioformat_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 | namespace Gst |
| 30 | { |
| 31 | |
| 32 | AudioFormatInfo::AudioFormatInfo(const GstAudioFormatInfo *m_info) |
| 33 | : m_info(*m_info) |
| 34 | { |
| 35 | } |
| 36 | |
| 37 | } |
| 38 | |
| 39 | namespace |
| 40 | { |
| 41 | } // anonymous namespace |
| 42 | |
| 43 | // static |
| 44 | GType Glib::Value<Gst::AudioFormat>::value_type() |
| 45 | { |
| 46 | return gst_audio_format_get_type(); |
| 47 | } |
| 48 | |
| 49 | // static |
| 50 | GType Glib::Value<Gst::AudioFormatFlags>::value_type() |
| 51 | { |
| 52 | return gst_audio_format_flags_get_type(); |
| 53 | } |
| 54 | |
| 55 | // static |
| 56 | GType Glib::Value<Gst::AudioPackFlags>::value_type() |
| 57 | { |
| 58 | return gst_audio_pack_flags_get_type(); |
| 59 | } |
| 60 | |
| 61 | |
| 62 | namespace Gst |
| 63 | { |
| 64 | |
| 65 | |
| 66 | AudioFormat AudioFormatInfo::get_format() const |
| 67 | { |
| 68 | return ((AudioFormat)(gobj()->format)); |
| 69 | } |
| 70 | |
| 71 | void AudioFormatInfo::set_format(const AudioFormat& value) |
| 72 | { |
| 73 | gobj()->format = ((GstAudioFormat)(value)); |
| 74 | } |
| 75 | |
| 76 | std::string AudioFormatInfo::get_name() const |
| 77 | { |
| 78 | return Glib::convert_const_gchar_ptr_to_stdstring(gobj()->name); |
| 79 | } |
| 80 | |
| 81 | void AudioFormatInfo::set_name(const std::string& value) |
| 82 | { |
| 83 | gobj()->name = value.c_str(); |
| 84 | } |
| 85 | |
| 86 | std::string AudioFormatInfo::get_description() const |
| 87 | { |
| 88 | return Glib::convert_const_gchar_ptr_to_stdstring(gobj()->description); |
| 89 | } |
| 90 | |
| 91 | void AudioFormatInfo::set_description(const std::string& value) |
| 92 | { |
| 93 | gobj()->description = value.c_str(); |
| 94 | } |
| 95 | |
| 96 | AudioFormatFlags AudioFormatInfo::get_flags() const |
| 97 | { |
| 98 | return ((AudioFormatFlags)(gobj()->flags)); |
| 99 | } |
| 100 | |
| 101 | void AudioFormatInfo::set_flags(const AudioFormatFlags& value) |
| 102 | { |
| 103 | gobj()->flags = ((GstAudioFormatFlags)(value)); |
| 104 | } |
| 105 | |
| 106 | int AudioFormatInfo::get_endianness() const |
| 107 | { |
| 108 | return gobj()->endianness; |
| 109 | } |
| 110 | |
| 111 | void AudioFormatInfo::set_endianness(const int& value) |
| 112 | { |
| 113 | gobj()->endianness = value; |
| 114 | } |
| 115 | |
| 116 | int AudioFormatInfo::get_width() const |
| 117 | { |
| 118 | return gobj()->width; |
| 119 | } |
| 120 | |
| 121 | void AudioFormatInfo::set_width(const int& value) |
| 122 | { |
| 123 | gobj()->width = value; |
| 124 | } |
| 125 | |
| 126 | int AudioFormatInfo::get_depth() const |
| 127 | { |
| 128 | return gobj()->depth; |
| 129 | } |
| 130 | |
| 131 | void AudioFormatInfo::set_depth(const int& value) |
| 132 | { |
| 133 | gobj()->depth = value; |
| 134 | } |
| 135 | |
| 136 | AudioFormat AudioFormatInfo::get_unpack_format() const |
| 137 | { |
| 138 | return ((AudioFormat)(gobj()->unpack_format)); |
| 139 | } |
| 140 | |
| 141 | void AudioFormatInfo::set_unpack_format(const AudioFormat& value) |
| 142 | { |
| 143 | gobj()->unpack_format = ((GstAudioFormat)(value)); |
| 144 | } |
| 145 | |
| 146 | |
| 147 | } // namespace Gst |
| 148 | |
| 149 |