Debian Codegraph @

gstreamer/gstreamermm/audiobasesrc.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/audiobasesrc.h`/
2 #ifndef _GSTREAMERMM_AUDIOBASESRC_H
3 #define _GSTREAMERMM_AUDIOBASESRC_Hcxx . . $ `gstreamer/gstreamermm/audiobasesrc.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 2008-2016 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/gstaudiobasesrc.h>
29 #include <gstreamermm/pushsrc.h>cxx . . $ `<file>/gstreamer/gstreamermm/pushsrc.h`/
30
31
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 using GstAudioBaseSrccxx . . $ GstAudioBaseSrc# = struct _GstAudioBaseSrccxx . . $ _GstAudioBaseSrc#;
34 using GstAudioBaseSrcClasscxx . . $ GstAudioBaseSrcClass# = struct _GstAudioBaseSrcClasscxx . . $ _GstAudioBaseSrcClass#;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
36
37
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 namespace Gstcxx . . $ Gst/
40 { class AudioBaseSrc_Classcxx . . $ Gst/AudioBaseSrc_Class#; } // namespace Gst
41 #endif //DOXYGEN_SHOULD_SKIP_THIS
42
43 namespace Gstcxx . . $ Gst/
44 {
45
46 class AudioRingBuffercxx . . $ Gst/AudioRingBuffer#;
47
48 /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */
49
50 /**
51 * @var AudioBaseSrcSlaveMethod AUDIO_BASE_SRC_SLAVE_RESAMPLE
52 * Resample to match the master clock.
53 *
54 * @var AudioBaseSrcSlaveMethod AUDIO_BASE_SRC_SLAVE_RETIMESTAMP
55 * Retimestamp output buffers with master
56 * clock time.
57 *
58 * @var AudioBaseSrcSlaveMethod AUDIO_BASE_SRC_SLAVE_SKEW
59 * Adjust capture pointer when master clock
60 * drifts too much.
61 *
62 * @var AudioBaseSrcSlaveMethod AUDIO_BASE_SRC_SLAVE_NONE
63 * No adjustment is done.
64 *
65 * @enum AudioBaseSrcSlaveMethod
66 *
67 * Different possible clock slaving algorithms when the internal audio clock was
68 * not selected as the pipeline clock.
69 *
70 * @ingroup gstreamermmEnums
71 */
72 enum AudioBaseSrcSlaveMethodcxx . . $ Gst/AudioBaseSrcSlaveMethod#
73 {
74 AUDIO_BASE_SRC_SLAVE_RESAMPLEcxx . . $ Gst/AUDIO_BASE_SRC_SLAVE_RESAMPLE.,
75 AUDIO_BASE_SRC_SLAVE_RETIMESTAMPcxx . . $ Gst/AUDIO_BASE_SRC_SLAVE_RETIMESTAMP.,
76 AUDIO_BASE_SRC_SLAVE_SKEWcxx . . $ Gst/AUDIO_BASE_SRC_SLAVE_SKEW.,
77 AUDIO_BASE_SRC_SLAVE_NONEcxx . . $ Gst/AUDIO_BASE_SRC_SLAVE_NONE.
78 };
79
80 } // namespace Gst
81
82 #ifndef DOXYGEN_SHOULD_SKIP_THIS
83 namespace Glibcxx . . $ Glib/
84 {
85
86 template <>
87 class Valuecxx . . $ Glib/Value#<Gstcxx . . $ Gst/::AudioBaseSrcSlaveMethodcxx . . $ Gst/AudioBaseSrcSlaveMethod#> : public Glibcxx . . $ Glib/::Value_Enumcxx . . $ Glib/Value_Enum#<Gstcxx . . $ Gst/::AudioBaseSrcSlaveMethodcxx . . $ Gst/AudioBaseSrcSlaveMethod#>
88 {
89 public:
90 static GType value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
91 };
92
93 } // namespace Glib
94 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
95
96 namespace Gstcxx . . $ Gst/
97 {
98
99
100 /** The base class for audio sources.
101 * This is the base class for audio sources. Subclasses need to implement the
102 * create_ringbuffer_vfunc vmethod. This base class will then take care of
103 * reading samples from the audioringbuffer, synchronisation and flushing.
104 *
105 * Last reviewed on 2016-04-23 (1.8.0).
106 *
107 * @ingroup GstBaseClasses
108 */
109
110 class AudioBaseSrccxx . . $ Gst/AudioBaseSrc# : public Gstcxx . . $ Gst/::PushSrccxx . . $ Gst/PushSrc#
111 {
112
113 #ifndef DOXYGEN_SHOULD_SKIP_THIS
114
115 public:
116 using CppObjectTypecxx . . $ Gst/AudioBaseSrc#CppObjectType# = AudioBaseSrccxx . . $ Gst/AudioBaseSrc#;
117 using CppClassTypecxx . . $ Gst/AudioBaseSrc#CppClassType# = AudioBaseSrc_Classcxx . . $ Gst/AudioBaseSrc_Class#;
118 using BaseObjectTypecxx . . $ Gst/AudioBaseSrc#BaseObjectType# = GstAudioBaseSrccxx . . $ GstAudioBaseSrc#;
119 using BaseClassTypecxx . . $ Gst/AudioBaseSrc#BaseClassType# = GstAudioBaseSrcClasscxx . . $ GstAudioBaseSrcClass#;
120
121 // noncopyable
122 AudioBaseSrccxx . . $ Gst/AudioBaseSrc#AudioBaseSrc(bbd5e2ec54de0c0d).(const AudioBaseSrccxx . . $ Gst/AudioBaseSrc#&) = delete;
123 AudioBaseSrccxx . . $ Gst/AudioBaseSrc#& operatorcxx . . $ Gst/AudioBaseSrc#`operator=`(bf6d8e5d4c057bd2).=(const AudioBaseSrccxx . . $ Gst/AudioBaseSrc#&) = delete;
124
125 private: friend class AudioBaseSrc_Classcxx . . $ Gst/AudioBaseSrc_Class#;
126 static CppClassTypecxx . . $ Gst/AudioBaseSrc#CppClassType# audiobasesrc_class_cxx . . $ Gst/AudioBaseSrc#audiobasesrc_class_.;
127
128 protected:
129 explicit AudioBaseSrccxx . . $ Gst/AudioBaseSrc#AudioBaseSrc(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params);
130 explicit AudioBaseSrccxx . . $ Gst/AudioBaseSrc#AudioBaseSrc(9182521486769bb8).(GstAudioBaseSrccxx . . $ GstAudioBaseSrc#* castitem);
131
132 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
133
134 public:
135
136 AudioBaseSrccxx . . $ Gst/AudioBaseSrc#AudioBaseSrc(afb3adff61b45786).(AudioBaseSrccxx . . $ Gst/AudioBaseSrc#&& src) noexcept;
137 AudioBaseSrccxx . . $ Gst/AudioBaseSrc#& operatorcxx . . $ Gst/AudioBaseSrc#`operator=`(d519b66d556ba11c).=(AudioBaseSrccxx . . $ Gst/AudioBaseSrc#&& src) noexcept;
138
139 ~cxx . . $ Gst/AudioBaseSrc#`~AudioBaseSrc`(ced63f7c635d850d).AudioBaseSrccxx . . $ Gst/AudioBaseSrc#() noexcept override;
140
141 /** Get the GType for this class, for use with the underlying GObject type system.
142 */
143 static GType get_typecxx . . $ Gst/AudioBaseSrc#get_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `gstreamer/gstreamermm/wrap_init.cc:9:9`!;
144
145 #ifndef DOXYGEN_SHOULD_SKIP_THIS
146
147
148 static GType get_base_typecxx . . $ Gst/AudioBaseSrc#get_base_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `gstreamer/gstreamermm/wrap_init.cc:9:9`!;
149 #endif
150
151 ///Provides access to the underlying C GObject.
152 GstAudioBaseSrccxx . . $ GstAudioBaseSrc#* gobjcxx . . $ Gst/AudioBaseSrc#gobj(263878e77bf67101).() { return reinterpret_cast<GstAudioBaseSrccxx . . $ GstAudioBaseSrc#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
153
154 ///Provides access to the underlying C GObject.
155 const GstAudioBaseSrccxx . . $ GstAudioBaseSrc#* gobjcxx . . $ Gst/AudioBaseSrc#gobj(6bf94ae5bf55a723).() const { return reinterpret_cast<GstAudioBaseSrccxx . . $ GstAudioBaseSrc#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
156
157 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
158 GstAudioBaseSrccxx . . $ GstAudioBaseSrc#* gobj_copycxx . . $ Gst/AudioBaseSrc#gobj_copy(263878e77bf67101).();
159
160 private:
161
162
163 public:
164 /** Get the Gst::Clock of the Gst::AudioSrc.
165 */
166 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#> get_clockcxx . . $ Gst/AudioBaseSrc#get_clock(675458b535f1101e).();
167 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<const Gstcxx . . $ Gst/::Clockcxx . . $ Gst/Clock#> get_clockcxx . . $ Gst/AudioBaseSrc#get_clock(d423a9683e0d77bf).() const;
168
169
170 /** Create and return the Gst::AudioRingBuffer for @a src. This function will call
171 * the ::create_ringbuffer vmethod and will set @a src as the parent of the
172 * returned buffer (see Gst::Object::set_parent()).
173 *
174 * @return The new ringbuffer of @a src.
175 */
176 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#> create_ring_buffercxx . . $ Gst/AudioBaseSrc#create_ring_buffer(d6ad144582804c6a).();
177
178
179 /** Controls whether @a src will provide a clock or not. If @a provide is <tt>true</tt>,
180 * Gst::Element::provide_clock() will return a clock that reflects the datarate
181 * of @a src. If @a provide is <tt>false</tt>, Gst::Element::provide_clock() will return <tt>nullptr</tt>.
182 *
183 * @param provide New state.
184 */
185 void set_provide_clockcxx . . $ Gst/AudioBaseSrc#set_provide_clock(b45ddcbc8423892c).(bool provide);
186
187 /** Queries whether @a src will provide a clock or not. See also
188 * gst_audio_base_src_set_provide_clock.
189 *
190 * @return <tt>true</tt> if @a src will provide a clock.
191 */
192 bool get_provide_clockcxx . . $ Gst/AudioBaseSrc#get_provide_clock(50ce9a9e25b4a850).() const;
193
194 /** Controls how clock slaving will be performed in @a src.
195 *
196 * @param method The new slave method.
197 */
198 void set_slave_methodcxx . . $ Gst/AudioBaseSrc#set_slave_method(c5937ae125d5944).(Gstcxx . . $ Gst/::AudioBaseSrcSlaveMethodcxx . . $ Gst/AudioBaseSrcSlaveMethod# method);
199
200 /** Get the current slave method used by @a src.
201 *
202 * @return The current slave method used by @a src.
203 */
204 Gstcxx . . $ Gst/::AudioBaseSrcSlaveMethodcxx . . $ Gst/AudioBaseSrcSlaveMethod# get_slave_methodcxx . . $ Gst/AudioBaseSrc#get_slave_method(369f6e06823212f6).() const;
205
206 /** Actual configured size of audio buffer in microseconds.
207 *
208 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
209 * or receive notification when the value of the property changes.
210 */
211 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< gint64 > property_actual_buffer_timecxx . . $ Gst/AudioBaseSrc#property_actual_buffer_time(593ac6380b69f4e9).() const;
212
213
214 /** Actual configured audio latency in microseconds.
215 *
216 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
217 * or receive notification when the value of the property changes.
218 */
219 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< gint64 > property_actual_latency_timecxx . . $ Gst/AudioBaseSrc#property_actual_latency_time(593ac6380b69f4e9).() const;
220
221
222 /** Size of audio buffer in microseconds. This is the maximum amount of data that is buffered in the device and the maximum latency that the source reports. This value might be ignored by the element if necessary; see 'actual-buffer-time'.
223 *
224 * @return A PropertyProxy that allows you to get or set the value of the property,
225 * or receive notification when the value of the property changes.
226 */
227 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< gint64 > property_buffer_timecxx . . $ Gst/AudioBaseSrc#property_buffer_time(6b69460574dd6a75).() ;
228
229 /** Size of audio buffer in microseconds. This is the maximum amount of data that is buffered in the device and the maximum latency that the source reports. This value might be ignored by the element if necessary; see 'actual-buffer-time'.
230 *
231 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
232 * or receive notification when the value of the property changes.
233 */
234 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< gint64 > property_buffer_timecxx . . $ Gst/AudioBaseSrc#property_buffer_time(593ac6380b69f4e9).() const;
235
236 /** The minimum amount of data to read in each iteration in microseconds. This is the minimum latency that the source reports. This value might be ignored by the element if necessary; see 'actual-latency-time'.
237 *
238 * @return A PropertyProxy that allows you to get or set the value of the property,
239 * or receive notification when the value of the property changes.
240 */
241 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< gint64 > property_latency_timecxx . . $ Gst/AudioBaseSrc#property_latency_time(6b69460574dd6a75).() ;
242
243 /** The minimum amount of data to read in each iteration in microseconds. This is the minimum latency that the source reports. This value might be ignored by the element if necessary; see 'actual-latency-time'.
244 *
245 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
246 * or receive notification when the value of the property changes.
247 */
248 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< gint64 > property_latency_timecxx . . $ Gst/AudioBaseSrc#property_latency_time(593ac6380b69f4e9).() const;
249
250 /** Provide a clock to be used as the global pipeline clock.
251 *
252 * @return A PropertyProxy that allows you to get or set the value of the property,
253 * or receive notification when the value of the property changes.
254 */
255 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< bool > property_provide_clockcxx . . $ Gst/AudioBaseSrc#property_provide_clock(962e4b383dc974dc).() ;
256
257 /** Provide a clock to be used as the global pipeline clock.
258 *
259 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
260 * or receive notification when the value of the property changes.
261 */
262 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< bool > property_provide_clockcxx . . $ Gst/AudioBaseSrc#property_provide_clock(bb701360c56d84c7).() const;
263
264
265 /** Algorithm used to match the rate of the masterclock.
266 *
267 * @return A PropertyProxy that allows you to get or set the value of the property,
268 * or receive notification when the value of the property changes.
269 */
270 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< AudioBaseSrcSlaveMethodcxx . . $ Gst/AudioBaseSrcSlaveMethod# > property_slave_methodcxx . . $ Gst/AudioBaseSrc#property_slave_method(15f699a95ce7f02b).() ;
271
272 /** Algorithm used to match the rate of the masterclock.
273 *
274 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
275 * or receive notification when the value of the property changes.
276 */
277 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< AudioBaseSrcSlaveMethodcxx . . $ Gst/AudioBaseSrcSlaveMethod# > property_slave_methodcxx . . $ Gst/AudioBaseSrc#property_slave_method(a4cfa5eff65bb053).() const;
278
279
280 /** vfunc to create and return a Gst::AudioRingBuffer to read from.
281 */
282 virtual Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioRingBuffercxx . . $ Gst/AudioRingBuffer#> create_ring_buffer_vfunccxx . . $ Gst/AudioBaseSrc#create_ring_buffer_vfunc(d6ad144582804c6a).();
283
284
285 public:
286
287 public:
288 //C++ methods used to invoke GTK+ virtual functions:
289
290 protected:
291 //GTK+ Virtual Functions (override these to change behaviour):
292
293 //Default Signal Handlers::
294
295
296 };
297
298 } // namespace Gst
299
300
301 namespace Glibcxx . . $ Glib/
302 {
303 /** A Glib::wrap() method for this object.
304 *
305 * @param object The C instance.
306 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
307 * @result A C++ instance that wraps this C instance.
308 *
309 * @relates Gst::AudioBaseSrc
310 */
311 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioBaseSrccxx . . $ Gst/AudioBaseSrc#> wrapcxx . . $ Glib/wrap(4e24c67bc1d827f2).(GstAudioBaseSrccxx . . $ GstAudioBaseSrc#* object, bool take_copy = false);
312 }
313
314
315 #endif /* _GSTREAMERMM_AUDIOBASESRC_H */
316