Debian Codegraph @

gstreamer/gstreamermm/streamvolume.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/streamvolume.h`/
2 #ifndef _GSTREAMERMM_STREAMVOLUME_H
3 #define _GSTREAMERMM_STREAMVOLUME_Hcxx . . $ `gstreamer/gstreamermm/streamvolume.h:3:9`!
4
5
6 #include <glibmm/ustring.h>
7 #include <sigc++/sigc++.h>
8
9 /* gstreamermm - a C++ wrapper for gstreamer
10 *
11 * Copyright 2009 The gstreamermm Development Team
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 */
27
28 #include <gst/audio/streamvolume.h>
29 #include <glibmm/interface.h>
30
31
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 using GstStreamVolumecxx . . $ GstStreamVolume# = struct _GstStreamVolumecxx . . $ _GstStreamVolume#;
34 using GstStreamVolumeClasscxx . . $ GstStreamVolumeClass# = struct _GstStreamVolumeClasscxx . . $ _GstStreamVolumeClass#;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
36
37
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 namespace Gstcxx . . $ Gst/
40 { class StreamVolume_Classcxx . . $ Gst/StreamVolume_Class#; } // namespace Gst
41 #endif // DOXYGEN_SHOULD_SKIP_THIS
42
43 namespace Gstcxx . . $ Gst/
44 {
45
46 /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */
47
48 /**
49 * @var StreamVolumeFormat STREAM_VOLUME_FORMAT_LINEAR
50 * Linear scale factor, 1.0 = 100%.
51 *
52 * @var StreamVolumeFormat STREAM_VOLUME_FORMAT_CUBIC
53 * Cubic volume scale.
54 *
55 * @var StreamVolumeFormat STREAM_VOLUME_FORMAT_DB
56 * Logarithmic volume scale (dB, amplitude not power).
57 *
58 * @enum StreamVolumeFormat
59 *
60 * Different representations of a stream volume. gst_stream_volume_convert_volume()
61 * allows to convert between the different representations.
62 *
63 * Formulas to convert from a linear to a cubic or dB volume are
64 * cbrt(val) and 20 * log10 (val).
65 *
66 * @ingroup gstreamermmEnums
67 */
68 enum StreamVolumeFormatcxx . . $ Gst/StreamVolumeFormat#
69 {
70 STREAM_VOLUME_FORMAT_LINEARcxx . . $ Gst/STREAM_VOLUME_FORMAT_LINEAR.,
71 STREAM_VOLUME_FORMAT_CUBICcxx . . $ Gst/STREAM_VOLUME_FORMAT_CUBIC.,
72 STREAM_VOLUME_FORMAT_DBcxx . . $ Gst/STREAM_VOLUME_FORMAT_DB.
73 };
74
75
76 /** An interface for elements that provide a stream volume.
77 * @ingroup GstInterfaces
78 */
79
80
81 class StreamVolumecxx . . $ Gst/StreamVolume# : public Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#
82 {
83
84 #ifndef DOXYGEN_SHOULD_SKIP_THIS
85
86 public:
87 using CppObjectTypecxx . . $ Gst/StreamVolume#CppObjectType# = StreamVolumecxx . . $ Gst/StreamVolume#;
88 using CppClassTypecxx . . $ Gst/StreamVolume#CppClassType# = StreamVolume_Classcxx . . $ Gst/StreamVolume_Class#;
89 using BaseObjectTypecxx . . $ Gst/StreamVolume#BaseObjectType# = GstStreamVolumecxx . . $ GstStreamVolume#;
90 using BaseClassTypecxx . . $ Gst/StreamVolume#BaseClassType# = GstStreamVolumeInterface;
91
92 // noncopyable
93 StreamVolumecxx . . $ Gst/StreamVolume#StreamVolume(9e23a0af59fa6f9).(const StreamVolumecxx . . $ Gst/StreamVolume#&) = delete;
94 StreamVolumecxx . . $ Gst/StreamVolume#& operatorcxx . . $ Gst/StreamVolume#`operator=`(586721e348495d65).=(const StreamVolumecxx . . $ Gst/StreamVolume#&) = delete;
95
96 private:
97 friend class StreamVolume_Classcxx . . $ Gst/StreamVolume_Class#;
98 static CppClassTypecxx . . $ Gst/StreamVolume#CppClassType# streamvolume_class_cxx . . $ Gst/StreamVolume#streamvolume_class_.;
99
100 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
101 protected:
102 /**
103 * You should derive from this class to use it.
104 */
105 StreamVolumecxx . . $ Gst/StreamVolume#StreamVolume(49f6e7a06ebc5aa8).();
106
107 #ifndef DOXYGEN_SHOULD_SKIP_THIS
108 /** Called by constructors of derived classes. Provide the result of
109 * the Class init() function to ensure that it is properly
110 * initialized.
111 *
112 * @param interface_class The Class object for the derived type.
113 */
114 explicit StreamVolumecxx . . $ Gst/StreamVolume#StreamVolume(2ae54c1e3e0dc4a8).(const Glibcxx . . $ Glib/::Interface_Classcxx . . $ Glib/Interface_Class#& interface_class);
115
116 public:
117 // This is public so that C++ wrapper instances can be
118 // created for C instances of unwrapped types.
119 // For instance, if an unexpected C type implements the C interface.
120 explicit StreamVolumecxx . . $ Gst/StreamVolume#StreamVolume(1de901533b52ee48).(GstStreamVolumecxx . . $ GstStreamVolume#* castitem);
121
122 protected:
123 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
124
125 public:
126
127 StreamVolumecxx . . $ Gst/StreamVolume#StreamVolume(86fe5bf3a9c56e65).(StreamVolumecxx . . $ Gst/StreamVolume#&& src) noexcept;
128 StreamVolumecxx . . $ Gst/StreamVolume#& operatorcxx . . $ Gst/StreamVolume#`operator=`(8ce1c94e06336546).=(StreamVolumecxx . . $ Gst/StreamVolume#&& src) noexcept;
129
130 ~cxx . . $ Gst/StreamVolume#`~StreamVolume`(ced63f7c635d850d).StreamVolumecxx . . $ Gst/StreamVolume#() noexcept override;
131
132 static void add_interfacecxx . . $ Gst/StreamVolume#add_interface(2c44cd906ae4e829).(GType gtype_implementer);
133
134 /** Get the GType for this class, for use with the underlying GObject type system.
135 */
136 static GType get_typecxx . . $ Gst/StreamVolume#get_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
137
138 #ifndef DOXYGEN_SHOULD_SKIP_THIS
139 static GType get_base_typecxx . . $ Gst/StreamVolume#get_base_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
140 #endif
141
142 ///Provides access to the underlying C GObject.
143 GstStreamVolumecxx . . $ GstStreamVolume#* gobjcxx . . $ Gst/StreamVolume#gobj(813e66bc8a17a17).() { return reinterpret_cast<GstStreamVolumecxx . . $ GstStreamVolume#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
144
145 ///Provides access to the underlying C GObject.
146 const GstStreamVolumecxx . . $ GstStreamVolume#* gobjcxx . . $ Gst/StreamVolume#gobj(55372685bc8cd192).() const { return reinterpret_cast<GstStreamVolumecxx . . $ GstStreamVolume#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
147
148 private:
149
150
151 public:
152
153 /** @param format Gst::StreamVolumeFormat which should be returned.
154 * @return The current stream volume as linear factor.
155 */
156 double get_volumecxx . . $ Gst/StreamVolume#get_volume(95724c082abe79e4).(Gstcxx . . $ Gst/::StreamVolumeFormatcxx . . $ Gst/StreamVolumeFormat# format);
157
158 /** @param format Gst::StreamVolumeFormat of @a val.
159 * @param val Linear volume factor that should be set.
160 */
161 void set_volumecxx . . $ Gst/StreamVolume#set_volume(7ac87ad860c7e4de).(Gstcxx . . $ Gst/::StreamVolumeFormatcxx . . $ Gst/StreamVolumeFormat# format, double val);
162
163 /** @return Returns <tt>true</tt> if the stream is muted.
164 */
165 bool get_mutecxx . . $ Gst/StreamVolume#get_mute(c9857a73d68e59ba).();
166
167 /** @param mute Mute state that should be set.
168 */
169 void set_mutecxx . . $ Gst/StreamVolume#set_mute(b45ddcbc8423892c).(bool mute);
170
171 /** @param from Gst::StreamVolumeFormat to convert from.
172 * @param to Gst::StreamVolumeFormat to convert to.
173 * @param val Volume in @a from format that should be converted.
174 * @return The converted volume.
175 */
176 static double convert_volumecxx . . $ Gst/StreamVolume#convert_volume(3f1e6be7fdfc728c).(Gstcxx . . $ Gst/::StreamVolumeFormatcxx . . $ Gst/StreamVolumeFormat# from, Gstcxx . . $ Gst/::StreamVolumeFormatcxx . . $ Gst/StreamVolumeFormat# to, double val);
177
178 // Properties:
179 /** Mute the audio channel without changing the volume.
180 *
181 * @return A PropertyProxy that allows you to get or set the value of the property,
182 * or receive notification when the value of the property changes.
183 */
184 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< bool > property_mutecxx . . $ Gst/StreamVolume#property_mute(962e4b383dc974dc).() ;
185
186 /** Mute the audio channel without changing the volume.
187 *
188 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
189 * or receive notification when the value of the property changes.
190 */
191 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool > property_mutecxx . . $ Gst/StreamVolume#property_mute(bb701360c56d84c7).() const;
192
193 /** Linear volume factor, 1.0=100%.
194 *
195 * @return A PropertyProxy that allows you to get or set the value of the property,
196 * or receive notification when the value of the property changes.
197 */
198 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< double > property_volumecxx . . $ Gst/StreamVolume#property_volume(5902f01579e2dcb0).() ;
199
200 /** Linear volume factor, 1.0=100%.
201 *
202 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
203 * or receive notification when the value of the property changes.
204 */
205 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< double > property_volumecxx . . $ Gst/StreamVolume#property_volume(f7f19ddbcc831471).() const;
206
207
208 public:
209
210 public:
211 //C++ methods used to invoke GTK+ virtual functions:
212
213 protected:
214 //GTK+ Virtual Functions (override these to change behaviour):
215
216 //Default Signal Handlers::
217
218
219 };
220
221 } // namespace Gst
222
223
224 namespace Glibcxx . . $ Glib/
225 {
226 /** A Glib::wrap() method for this object.
227 *
228 * @param object The C instance.
229 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
230 * @result A C++ instance that wraps this C instance.
231 *
232 * @relates Gst::StreamVolume
233 */
234 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::StreamVolumecxx . . $ Gst/StreamVolume#> wrapcxx . . $ Glib/wrap(c27cb9f5be49a3ce).(GstStreamVolumecxx . . $ GstStreamVolume#* object, bool take_copy = false);
235
236 } // namespace Glib
237
238
239 #endif /* _GSTREAMERMM_STREAMVOLUME_H */
240