Debian Codegraph @

gstreamer/gstreamermm/audiosrc.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/audiosrc.h`/
2 #ifndef _GSTREAMERMM_AUDIOSRC_H
3 #define _GSTREAMERMM_AUDIOSRC_Hcxx . . $ `gstreamer/gstreamermm/audiosrc.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 <gstreamermm/audioringbuffer.h>cxx . . $ `<file>/gstreamer/gstreamermm/audioringbuffer.h`/
29 #include <gst/audio/gstaudiosrc.h>
30 #include <gstreamermm/audiobasesrc.h>cxx . . $ `<file>/gstreamer/gstreamermm/audiobasesrc.h`/
31
32
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 using GstAudioSrccxx . . $ GstAudioSrc# = struct _GstAudioSrccxx . . $ _GstAudioSrc#;
35 using GstAudioSrcClasscxx . . $ GstAudioSrcClass# = struct _GstAudioSrcClasscxx . . $ _GstAudioSrcClass#;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
37
38
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 namespace Gstcxx . . $ Gst/
41 { class AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#; } // namespace Gst
42 #endif //DOXYGEN_SHOULD_SKIP_THIS
43
44 namespace Gstcxx . . $ Gst/
45 {
46
47 /** A simple base class for audio sources.
48 * This is the most simple base class for audio sources that only requires
49 * subclasses to implement a set of simple virtual functions:
50 *
51 * - open_vfunc() - Open the device.
52 * - prepare_vfunc() - Configure the device with the specified format.
53 * - read_vfunc() - Read samples from the device.
54 * - reset_vfunc() - Unblock reads and flush the device.
55 * - get_delay_vfunc() - Get the number of samples written but not yet played
56 * by the device.
57 * - unprepare_vfunc() - Undo operations done by prepare.
58 * - close_vfunc() - Close the device.
59 *
60 * All scheduling of samples and timestamps is done in this base class together
61 * with Gst::AudioBaseSrc using a default implementation of a
62 * Gst::AudioRingBuffer that uses threads.
63 *
64 * Last reviewed on 2016-04-23 (1.8.0)
65 *
66 * @ingroup GstBaseClasses
67 */
68
69 class AudioSrccxx . . $ Gst/AudioSrc# : public Gstcxx . . $ Gst/::AudioBaseSrccxx . . $ Gst/AudioBaseSrc#
70 {
71
72 #ifndef DOXYGEN_SHOULD_SKIP_THIS
73
74 public:
75 using CppObjectTypecxx . . $ Gst/AudioSrc#CppObjectType# = AudioSrccxx . . $ Gst/AudioSrc#;
76 using CppClassTypecxx . . $ Gst/AudioSrc#CppClassType# = AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#;
77 using BaseObjectTypecxx . . $ Gst/AudioSrc#BaseObjectType# = GstAudioSrccxx . . $ GstAudioSrc#;
78 using BaseClassTypecxx . . $ Gst/AudioSrc#BaseClassType# = GstAudioSrcClasscxx . . $ GstAudioSrcClass#;
79
80 // noncopyable
81 AudioSrccxx . . $ Gst/AudioSrc#AudioSrc(58fc30aff55167ca).(const AudioSrccxx . . $ Gst/AudioSrc#&) = delete;
82 AudioSrccxx . . $ Gst/AudioSrc#& operatorcxx . . $ Gst/AudioSrc#`operator=`(5d8b740895e6dec7).=(const AudioSrccxx . . $ Gst/AudioSrc#&) = delete;
83
84 private: friend class AudioSrc_Classcxx . . $ Gst/AudioSrc_Class#;
85 static CppClassTypecxx . . $ Gst/AudioSrc#CppClassType# audiosrc_class_cxx . . $ Gst/AudioSrc#audiosrc_class_.;
86
87 protected:
88 explicit AudioSrccxx . . $ Gst/AudioSrc#AudioSrc(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params);
89 explicit AudioSrccxx . . $ Gst/AudioSrc#AudioSrc(1e52e55b75405346).(GstAudioSrccxx . . $ GstAudioSrc#* castitem);
90
91 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
92
93 public:
94
95 AudioSrccxx . . $ Gst/AudioSrc#AudioSrc(dce2ca7b7b6ebe92).(AudioSrccxx . . $ Gst/AudioSrc#&& src) noexcept;
96 AudioSrccxx . . $ Gst/AudioSrc#& operatorcxx . . $ Gst/AudioSrc#`operator=`(e2684fd4ba024cc9).=(AudioSrccxx . . $ Gst/AudioSrc#&& src) noexcept;
97
98 ~cxx . . $ Gst/AudioSrc#`~AudioSrc`(ced63f7c635d850d).AudioSrccxx . . $ Gst/AudioSrc#() noexcept override;
99
100 /** Get the GType for this class, for use with the underlying GObject type system.
101 */
102 static GType get_typecxx . . $ Gst/AudioSrc#get_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `gstreamer/gstreamermm/wrap_init.cc:9:9`!;
103
104 #ifndef DOXYGEN_SHOULD_SKIP_THIS
105
106
107 static GType get_base_typecxx . . $ Gst/AudioSrc#get_base_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `gstreamer/gstreamermm/wrap_init.cc:9:9`!;
108 #endif
109
110 ///Provides access to the underlying C GObject.
111 GstAudioSrccxx . . $ GstAudioSrc#* gobjcxx . . $ Gst/AudioSrc#gobj(eb2adfda8c8b1ef9).() { return reinterpret_cast<GstAudioSrccxx . . $ GstAudioSrc#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
112
113 ///Provides access to the underlying C GObject.
114 const GstAudioSrccxx . . $ GstAudioSrc#* gobjcxx . . $ Gst/AudioSrc#gobj(3e4e615fd0b4b54c).() const { return reinterpret_cast<GstAudioSrccxx . . $ GstAudioSrc#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
115
116 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
117 GstAudioSrccxx . . $ GstAudioSrc#* gobj_copycxx . . $ Gst/AudioSrc#gobj_copy(eb2adfda8c8b1ef9).();
118
119 private:
120
121
122 public:
123 /** vfunc to open the device.
124 */
125 virtual bool open_vfunccxx . . $ Gst/AudioSrc#open_vfunc(c9857a73d68e59ba).();
126
127
128 /** vfunc to configure device with spec.
129 */
130 virtual bool prepare_vfunccxx . . $ Gst/AudioSrc#prepare_vfunc(edab929607edba42).(Gstcxx . . $ Gst/::AudioRingBufferSpeccxx . . $ Gst/AudioRingBufferSpec#& spec);
131
132 /** vfunc to undo the configuration.
133 */
134 virtual bool unprepare_vfunccxx . . $ Gst/AudioSrc#unprepare_vfunc(c9857a73d68e59ba).();
135
136
137 /** vfunc to close the device.
138 */
139 virtual bool close_vfunccxx . . $ Gst/AudioSrc#close_vfunc(c9857a73d68e59ba).();
140
141
142 /** vfunc to read samples to the audio device.
143 */
144 virtual guint read_vfunccxx . . $ Gst/AudioSrc#read_vfunc(ab1c501944935310).(const void* data, guint length, Gstcxx . . $ Gst/::ClockTimecxx . . $ Gst/ClockTime#& timestamp);
145
146 /** vfunc to get the number of samples queued in the device.
147 */
148 virtual guint get_delay_vfunccxx . . $ Gst/AudioSrc#get_delay_vfunc(ddd8539a2fcdd4ce).() const;
149
150
151 /** vfunc to unblock a read to the device and reset.
152 */
153 virtual void reset_vfunccxx . . $ Gst/AudioSrc#reset_vfunc(49f6e7a06ebc5aa8).();
154
155
156 protected:
157
158
159 public:
160
161 public:
162 //C++ methods used to invoke GTK+ virtual functions:
163
164 protected:
165 //GTK+ Virtual Functions (override these to change behaviour):
166
167 //Default Signal Handlers::
168
169
170 };
171
172 } // namespace Gst
173
174
175 namespace Glibcxx . . $ Glib/
176 {
177 /** A Glib::wrap() method for this object.
178 *
179 * @param object The C instance.
180 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
181 * @result A C++ instance that wraps this C instance.
182 *
183 * @relates Gst::AudioSrc
184 */
185 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::AudioSrccxx . . $ Gst/AudioSrc#> wrapcxx . . $ Glib/wrap(662195142fe5c413).(GstAudioSrccxx . . $ GstAudioSrc#* object, bool take_copy = false);
186 }
187
188
189 #endif /* _GSTREAMERMM_AUDIOSRC_H */
190