• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>GstAudioBaseSrc: GStreamer Base Plugins 1.0 Library Reference Manual</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Library Reference Manual">
8<link rel="up" href="gstreamer-audio.html" title="Audio Library">
9<link rel="prev" href="GstAudioBaseSink.html" title="GstAudioBaseSink">
10<link rel="next" href="gst-plugins-base-libs-Audio-channels.html" title="Audio-channels">
11<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13</head>
14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16<td width="100%" align="left" class="shortcuts">
17<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span18                  <a href="#GstAudioBaseSrc.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span19                  <a href="#GstAudioBaseSrc.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span20                  <a href="#GstAudioBaseSrc.properties" class="shortcut">Properties</a></span>
21</td>
22<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
23<td><a accesskey="u" href="gstreamer-audio.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
24<td><a accesskey="p" href="GstAudioBaseSink.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25<td><a accesskey="n" href="gst-plugins-base-libs-Audio-channels.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26</tr></table>
27<div class="refentry">
28<a name="GstAudioBaseSrc"></a><div class="titlepage"></div>
29<div class="refnamediv"><table width="100%"><tr>
30<td valign="top">
31<h2><span class="refentrytitle"><a name="GstAudioBaseSrc.top_of_page"></a>GstAudioBaseSrc</span></h2>
32<p>GstAudioBaseSrc — Base class for audio sources</p>
33</td>
34<td class="gallery_image" valign="top" align="right"></td>
35</tr></table></div>
36<div class="refsect1">
37<a name="GstAudioBaseSrc.functions"></a><h2>Functions</h2>
38<div class="informaltable"><table class="informaltable" width="100%" border="0">
39<colgroup>
40<col width="150px" class="functions_return">
41<col class="functions_name">
42</colgroup>
43<tbody>
44<tr>
45<td class="define_keyword">#define</td>
46<td class="function_name">
47<a class="link" href="GstAudioBaseSrc.html#GST-AUDIO-BASE-SRC-CLOCK:CAPS" title="GST_AUDIO_BASE_SRC_CLOCK()">GST_AUDIO_BASE_SRC_CLOCK</a><span class="c_punctuation">()</span>
48</td>
49</tr>
50<tr>
51<td class="define_keyword">#define</td>
52<td class="function_name">
53<a class="link" href="GstAudioBaseSrc.html#GST-AUDIO-BASE-SRC-PAD:CAPS" title="GST_AUDIO_BASE_SRC_PAD()">GST_AUDIO_BASE_SRC_PAD</a><span class="c_punctuation">()</span>
54</td>
55</tr>
56<tr>
57<td class="function_type">
58<a class="link" href="GstAudioRingBuffer.html" title="GstAudioRingBuffer"><span class="returnvalue">GstAudioRingBuffer</span></a> *
59</td>
60<td class="function_name">
61<a class="link" href="GstAudioBaseSrc.html#gst-audio-base-src-create-ringbuffer" title="gst_audio_base_src_create_ringbuffer ()">gst_audio_base_src_create_ringbuffer</a> <span class="c_punctuation">()</span>
62</td>
63</tr>
64<tr>
65<td class="function_type">
66<span class="returnvalue">void</span>
67</td>
68<td class="function_name">
69<a class="link" href="GstAudioBaseSrc.html#gst-audio-base-src-set-provide-clock" title="gst_audio_base_src_set_provide_clock ()">gst_audio_base_src_set_provide_clock</a> <span class="c_punctuation">()</span>
70</td>
71</tr>
72<tr>
73<td class="function_type">
74<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
75</td>
76<td class="function_name">
77<a class="link" href="GstAudioBaseSrc.html#gst-audio-base-src-get-provide-clock" title="gst_audio_base_src_get_provide_clock ()">gst_audio_base_src_get_provide_clock</a> <span class="c_punctuation">()</span>
78</td>
79</tr>
80<tr>
81<td class="function_type">
82<a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrcSlaveMethod" title="enum GstAudioBaseSrcSlaveMethod"><span class="returnvalue">GstAudioBaseSrcSlaveMethod</span></a>
83</td>
84<td class="function_name">
85<a class="link" href="GstAudioBaseSrc.html#gst-audio-base-src-get-slave-method" title="gst_audio_base_src_get_slave_method ()">gst_audio_base_src_get_slave_method</a> <span class="c_punctuation">()</span>
86</td>
87</tr>
88<tr>
89<td class="function_type">
90<span class="returnvalue">void</span>
91</td>
92<td class="function_name">
93<a class="link" href="GstAudioBaseSrc.html#gst-audio-base-src-set-slave-method" title="gst_audio_base_src_set_slave_method ()">gst_audio_base_src_set_slave_method</a> <span class="c_punctuation">()</span>
94</td>
95</tr>
96</tbody>
97</table></div>
98</div>
99<div class="refsect1">
100<a name="GstAudioBaseSrc.properties"></a><h2>Properties</h2>
101<div class="informaltable"><table class="informaltable" border="0">
102<colgroup>
103<col width="150px" class="properties_type">
104<col width="300px" class="properties_name">
105<col width="200px" class="properties_flags">
106</colgroup>
107<tbody>
108<tr>
109<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
110<td class="property_name"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrc--actual-buffer-time" title="The “actual-buffer-time” property">actual-buffer-time</a></td>
111<td class="property_flags">Read</td>
112</tr>
113<tr>
114<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
115<td class="property_name"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrc--actual-latency-time" title="The “actual-latency-time” property">actual-latency-time</a></td>
116<td class="property_flags">Read</td>
117</tr>
118<tr>
119<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
120<td class="property_name"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrc--buffer-time" title="The “buffer-time” property">buffer-time</a></td>
121<td class="property_flags">Read / Write</td>
122</tr>
123<tr>
124<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
125<td class="property_name"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrc--latency-time" title="The “latency-time” property">latency-time</a></td>
126<td class="property_flags">Read / Write</td>
127</tr>
128<tr>
129<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
130<td class="property_name"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrc--provide-clock" title="The “provide-clock” property">provide-clock</a></td>
131<td class="property_flags">Read / Write</td>
132</tr>
133<tr>
134<td class="property_type"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrcSlaveMethod" title="enum GstAudioBaseSrcSlaveMethod"><span class="type">GstAudioBaseSrcSlaveMethod</span></a></td>
135<td class="property_name"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrc--slave-method" title="The “slave-method” property">slave-method</a></td>
136<td class="property_flags">Read / Write</td>
137</tr>
138</tbody>
139</table></div>
140</div>
141<div class="refsect1">
142<a name="GstAudioBaseSrc.other"></a><h2>Types and Values</h2>
143<div class="informaltable"><table class="informaltable" width="100%" border="0">
144<colgroup>
145<col width="150px" class="name">
146<col class="description">
147</colgroup>
148<tbody>
149<tr>
150<td class="datatype_keyword">struct</td>
151<td class="function_name"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrc-struct" title="struct GstAudioBaseSrc">GstAudioBaseSrc</a></td>
152</tr>
153<tr>
154<td class="datatype_keyword">struct</td>
155<td class="function_name"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrcClass" title="struct GstAudioBaseSrcClass">GstAudioBaseSrcClass</a></td>
156</tr>
157<tr>
158<td class="datatype_keyword">enum</td>
159<td class="function_name"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrcSlaveMethod" title="enum GstAudioBaseSrcSlaveMethod">GstAudioBaseSrcSlaveMethod</a></td>
160</tr>
161</tbody>
162</table></div>
163</div>
164<div class="refsect1">
165<a name="GstAudioBaseSrc.object-hierarchy"></a><h2>Object Hierarchy</h2>
166<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GEnum</a>
167    <span class="lineart">╰──</span> GstAudioBaseSrcSlaveMethod
168    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
169    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
170        <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a>
171            <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a>
172                <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstBaseSrc.html#GstBaseSrc-struct">GstBaseSrc</a>
173                    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstPushSrc.html#GstPushSrc-struct">GstPushSrc</a>
174                        <span class="lineart">╰──</span> GstAudioBaseSrc
175                            <span class="lineart">╰──</span> <a class="link" href="GstAudioSrc.html" title="GstAudioSrc">GstAudioSrc</a>
176</pre>
177</div>
178<div class="refsect1">
179<a name="GstAudioBaseSrc.includes"></a><h2>Includes</h2>
180<pre class="synopsis">#include &lt;gst/audio/audio.h&gt;
181</pre>
182</div>
183<div class="refsect1">
184<a name="GstAudioBaseSrc.description"></a><h2>Description</h2>
185<p>This is the base class for audio sources. Subclasses need to implement the
186::create_ringbuffer vmethod. This base class will then take care of
187reading samples from the ringbuffer, synchronisation and flushing.</p>
188</div>
189<div class="refsect1">
190<a name="GstAudioBaseSrc.functions_details"></a><h2>Functions</h2>
191<div class="refsect2">
192<a name="GST-AUDIO-BASE-SRC-CLOCK:CAPS"></a><h3>GST_AUDIO_BASE_SRC_CLOCK()</h3>
193<pre class="programlisting">#define GST_AUDIO_BASE_SRC_CLOCK(obj)    (GST_AUDIO_BASE_SRC (obj)-&gt;clock)
194</pre>
195<p>Get the <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClock-struct"><span class="type">GstClock</span></a> of <em class="parameter"><code>obj</code></em>
196.</p>
197<div class="refsect3">
198<a name="GST-AUDIO-BASE-SRC-CLOCK.parameters"></a><h4>Parameters</h4>
199<div class="informaltable"><table class="informaltable" width="100%" border="0">
200<colgroup>
201<col width="150px" class="parameters_name">
202<col class="parameters_description">
203<col width="200px" class="parameters_annotations">
204</colgroup>
205<tbody><tr>
206<td class="parameter_name"><p>obj</p></td>
207<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a></p></td>
208<td class="parameter_annotations"> </td>
209</tr></tbody>
210</table></div>
211</div>
212</div>
213<hr>
214<div class="refsect2">
215<a name="GST-AUDIO-BASE-SRC-PAD:CAPS"></a><h3>GST_AUDIO_BASE_SRC_PAD()</h3>
216<pre class="programlisting">#define GST_AUDIO_BASE_SRC_PAD(obj)      (GST_BASE_SRC (obj)-&gt;srcpad)
217</pre>
218<p>Get the source <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstPad-struct"><span class="type">GstPad</span></a> of <em class="parameter"><code>obj</code></em>
219.</p>
220<div class="refsect3">
221<a name="GST-AUDIO-BASE-SRC-PAD.parameters"></a><h4>Parameters</h4>
222<div class="informaltable"><table class="informaltable" width="100%" border="0">
223<colgroup>
224<col width="150px" class="parameters_name">
225<col class="parameters_description">
226<col width="200px" class="parameters_annotations">
227</colgroup>
228<tbody><tr>
229<td class="parameter_name"><p>obj</p></td>
230<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a></p></td>
231<td class="parameter_annotations"> </td>
232</tr></tbody>
233</table></div>
234</div>
235</div>
236<hr>
237<div class="refsect2">
238<a name="gst-audio-base-src-create-ringbuffer"></a><h3>gst_audio_base_src_create_ringbuffer ()</h3>
239<pre class="programlisting"><a class="link" href="GstAudioRingBuffer.html" title="GstAudioRingBuffer"><span class="returnvalue">GstAudioRingBuffer</span></a> *
240gst_audio_base_src_create_ringbuffer (<em class="parameter"><code><a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a> *src</code></em>);</pre>
241<p>Create and return the <a class="link" href="GstAudioRingBuffer.html" title="GstAudioRingBuffer"><span class="type">GstAudioRingBuffer</span></a> for <em class="parameter"><code>src</code></em>
242. This function will call
243the ::create_ringbuffer vmethod and will set <em class="parameter"><code>src</code></em>
244 as the parent of the
245returned buffer (see <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#gst-object-set-parent"><code class="function">gst_object_set_parent()</code></a>).</p>
246<div class="refsect3">
247<a name="gst-audio-base-src-create-ringbuffer.parameters"></a><h4>Parameters</h4>
248<div class="informaltable"><table class="informaltable" width="100%" border="0">
249<colgroup>
250<col width="150px" class="parameters_name">
251<col class="parameters_description">
252<col width="200px" class="parameters_annotations">
253</colgroup>
254<tbody><tr>
255<td class="parameter_name"><p>src</p></td>
256<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a>.</p></td>
257<td class="parameter_annotations"> </td>
258</tr></tbody>
259</table></div>
260</div>
261<div class="refsect3">
262<a name="gst-audio-base-src-create-ringbuffer.returns"></a><h4>Returns</h4>
263<p>The new ringbuffer of <em class="parameter"><code>src</code></em>
264. </p>
265<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
266</div>
267</div>
268<hr>
269<div class="refsect2">
270<a name="gst-audio-base-src-set-provide-clock"></a><h3>gst_audio_base_src_set_provide_clock ()</h3>
271<pre class="programlisting"><span class="returnvalue">void</span>
272gst_audio_base_src_set_provide_clock (<em class="parameter"><code><a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a> *src</code></em>,
273                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> provide</code></em>);</pre>
274<p>Controls whether <em class="parameter"><code>src</code></em>
275 will provide a clock or not. If <em class="parameter"><code>provide</code></em>
276 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>,
277<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#gst-element-provide-clock"><code class="function">gst_element_provide_clock()</code></a> will return a clock that reflects the datarate
278of <em class="parameter"><code>src</code></em>
279. If <em class="parameter"><code>provide</code></em>
280 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#gst-element-provide-clock"><code class="function">gst_element_provide_clock()</code></a> will return NULL.</p>
281<div class="refsect3">
282<a name="gst-audio-base-src-set-provide-clock.parameters"></a><h4>Parameters</h4>
283<div class="informaltable"><table class="informaltable" width="100%" border="0">
284<colgroup>
285<col width="150px" class="parameters_name">
286<col class="parameters_description">
287<col width="200px" class="parameters_annotations">
288</colgroup>
289<tbody>
290<tr>
291<td class="parameter_name"><p>src</p></td>
292<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a></p></td>
293<td class="parameter_annotations"> </td>
294</tr>
295<tr>
296<td class="parameter_name"><p>provide</p></td>
297<td class="parameter_description"><p>new state</p></td>
298<td class="parameter_annotations"> </td>
299</tr>
300</tbody>
301</table></div>
302</div>
303</div>
304<hr>
305<div class="refsect2">
306<a name="gst-audio-base-src-get-provide-clock"></a><h3>gst_audio_base_src_get_provide_clock ()</h3>
307<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
308gst_audio_base_src_get_provide_clock (<em class="parameter"><code><a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a> *src</code></em>);</pre>
309<p>Queries whether <em class="parameter"><code>src</code></em>
310 will provide a clock or not. See also
311gst_audio_base_src_set_provide_clock.</p>
312<div class="refsect3">
313<a name="gst-audio-base-src-get-provide-clock.parameters"></a><h4>Parameters</h4>
314<div class="informaltable"><table class="informaltable" width="100%" border="0">
315<colgroup>
316<col width="150px" class="parameters_name">
317<col class="parameters_description">
318<col width="200px" class="parameters_annotations">
319</colgroup>
320<tbody><tr>
321<td class="parameter_name"><p>src</p></td>
322<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a></p></td>
323<td class="parameter_annotations"> </td>
324</tr></tbody>
325</table></div>
326</div>
327<div class="refsect3">
328<a name="gst-audio-base-src-get-provide-clock.returns"></a><h4>Returns</h4>
329<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>src</code></em>
330will provide a clock.</p>
331</div>
332</div>
333<hr>
334<div class="refsect2">
335<a name="gst-audio-base-src-get-slave-method"></a><h3>gst_audio_base_src_get_slave_method ()</h3>
336<pre class="programlisting"><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrcSlaveMethod" title="enum GstAudioBaseSrcSlaveMethod"><span class="returnvalue">GstAudioBaseSrcSlaveMethod</span></a>
337gst_audio_base_src_get_slave_method (<em class="parameter"><code><a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a> *src</code></em>);</pre>
338<p>Get the current slave method used by <em class="parameter"><code>src</code></em>
339.</p>
340<div class="refsect3">
341<a name="gst-audio-base-src-get-slave-method.parameters"></a><h4>Parameters</h4>
342<div class="informaltable"><table class="informaltable" width="100%" border="0">
343<colgroup>
344<col width="150px" class="parameters_name">
345<col class="parameters_description">
346<col width="200px" class="parameters_annotations">
347</colgroup>
348<tbody><tr>
349<td class="parameter_name"><p>src</p></td>
350<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a></p></td>
351<td class="parameter_annotations"> </td>
352</tr></tbody>
353</table></div>
354</div>
355<div class="refsect3">
356<a name="gst-audio-base-src-get-slave-method.returns"></a><h4>Returns</h4>
357<p> The current slave method used by <em class="parameter"><code>src</code></em>
358.</p>
359</div>
360</div>
361<hr>
362<div class="refsect2">
363<a name="gst-audio-base-src-set-slave-method"></a><h3>gst_audio_base_src_set_slave_method ()</h3>
364<pre class="programlisting"><span class="returnvalue">void</span>
365gst_audio_base_src_set_slave_method (<em class="parameter"><code><a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a> *src</code></em>,
366                                     <em class="parameter"><code><a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrcSlaveMethod" title="enum GstAudioBaseSrcSlaveMethod"><span class="type">GstAudioBaseSrcSlaveMethod</span></a> method</code></em>);</pre>
367<p>Controls how clock slaving will be performed in <em class="parameter"><code>src</code></em>
368.</p>
369<div class="refsect3">
370<a name="gst-audio-base-src-set-slave-method.parameters"></a><h4>Parameters</h4>
371<div class="informaltable"><table class="informaltable" width="100%" border="0">
372<colgroup>
373<col width="150px" class="parameters_name">
374<col class="parameters_description">
375<col width="200px" class="parameters_annotations">
376</colgroup>
377<tbody>
378<tr>
379<td class="parameter_name"><p>src</p></td>
380<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a></p></td>
381<td class="parameter_annotations"> </td>
382</tr>
383<tr>
384<td class="parameter_name"><p>method</p></td>
385<td class="parameter_description"><p>the new slave method</p></td>
386<td class="parameter_annotations"> </td>
387</tr>
388</tbody>
389</table></div>
390</div>
391</div>
392</div>
393<div class="refsect1">
394<a name="GstAudioBaseSrc.other_details"></a><h2>Types and Values</h2>
395<div class="refsect2">
396<a name="GstAudioBaseSrc-struct"></a><h3>struct GstAudioBaseSrc</h3>
397<pre class="programlisting">struct GstAudioBaseSrc;</pre>
398<p>Opaque <a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a>.</p>
399</div>
400<hr>
401<div class="refsect2">
402<a name="GstAudioBaseSrcClass"></a><h3>struct GstAudioBaseSrcClass</h3>
403<pre class="programlisting">struct GstAudioBaseSrcClass {
404  GstPushSrcClass      parent_class;
405
406  /* subclass ringbuffer allocation */
407  GstAudioRingBuffer* (*create_ringbuffer)  (GstAudioBaseSrc *src);
408};
409</pre>
410<p><a class="link" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc"><span class="type">GstAudioBaseSrc</span></a> class. Override the vmethod to implement
411functionality.</p>
412<div class="refsect3">
413<a name="GstAudioBaseSrcClass.members"></a><h4>Members</h4>
414<div class="informaltable"><table class="informaltable" width="100%" border="0">
415<colgroup>
416<col width="300px" class="struct_members_name">
417<col class="struct_members_description">
418<col width="200px" class="struct_members_annotations">
419</colgroup>
420<tbody><tr>
421<td class="struct_member_name"><p><em class="structfield"><code><a name="GstAudioBaseSrcClass.create-ringbuffer"></a>create_ringbuffer</code></em> ()</p></td>
422<td class="struct_member_description"><p>create and return a <a class="link" href="GstAudioRingBuffer.html" title="GstAudioRingBuffer"><span class="type">GstAudioRingBuffer</span></a> to read from.</p></td>
423<td class="struct_member_annotations"> </td>
424</tr></tbody>
425</table></div>
426</div>
427</div>
428<hr>
429<div class="refsect2">
430<a name="GstAudioBaseSrcSlaveMethod"></a><h3>enum GstAudioBaseSrcSlaveMethod</h3>
431<p>Different possible clock slaving algorithms when the internal audio clock was
432not selected as the pipeline clock.</p>
433<div class="refsect3">
434<a name="GstAudioBaseSrcSlaveMethod.members"></a><h4>Members</h4>
435<div class="informaltable"><table class="informaltable" width="100%" border="0">
436<colgroup>
437<col width="300px" class="enum_members_name">
438<col class="enum_members_description">
439<col width="200px" class="enum_members_annotations">
440</colgroup>
441<tbody>
442<tr>
443<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SRC-SLAVE-RESAMPLE:CAPS"></a>GST_AUDIO_BASE_SRC_SLAVE_RESAMPLE</p></td>
444<td class="enum_member_description">
445<p>Resample to match the master clock.</p>
446</td>
447<td class="enum_member_annotations"> </td>
448</tr>
449<tr>
450<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SRC-SLAVE-RE-TIMESTAMP:CAPS"></a>GST_AUDIO_BASE_SRC_SLAVE_RE_TIMESTAMP</p></td>
451<td class="enum_member_description">
452<p>Retimestamp output buffers with master
453clock time.</p>
454</td>
455<td class="enum_member_annotations"> </td>
456</tr>
457<tr>
458<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SRC-SLAVE-SKEW:CAPS"></a>GST_AUDIO_BASE_SRC_SLAVE_SKEW</p></td>
459<td class="enum_member_description">
460<p>Adjust capture pointer when master clock
461drifts too much.</p>
462</td>
463<td class="enum_member_annotations"> </td>
464</tr>
465<tr>
466<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SRC-SLAVE-NONE:CAPS"></a>GST_AUDIO_BASE_SRC_SLAVE_NONE</p></td>
467<td class="enum_member_description">
468<p>No adjustment is done.</p>
469</td>
470<td class="enum_member_annotations"> </td>
471</tr>
472</tbody>
473</table></div>
474</div>
475</div>
476</div>
477<div class="refsect1">
478<a name="GstAudioBaseSrc.property-details"></a><h2>Property Details</h2>
479<div class="refsect2">
480<a name="GstAudioBaseSrc--actual-buffer-time"></a><h3>The <code class="literal">“actual-buffer-time”</code> property</h3>
481<pre class="programlisting">  “actual-buffer-time”       <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
482<p>Actual configured size of audio buffer in microseconds.</p>
483<p>Flags: Read</p>
484<p>Allowed values: &gt;= -1</p>
485<p>Default value: -1</p>
486</div>
487<hr>
488<div class="refsect2">
489<a name="GstAudioBaseSrc--actual-latency-time"></a><h3>The <code class="literal">“actual-latency-time”</code> property</h3>
490<pre class="programlisting">  “actual-latency-time”      <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
491<p>Actual configured audio latency in microseconds.</p>
492<p>Flags: Read</p>
493<p>Allowed values: &gt;= -1</p>
494<p>Default value: -1</p>
495</div>
496<hr>
497<div class="refsect2">
498<a name="GstAudioBaseSrc--buffer-time"></a><h3>The <code class="literal">“buffer-time”</code> property</h3>
499<pre class="programlisting">  “buffer-time”              <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
500<p>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".</p>
501<p>Flags: Read / Write</p>
502<p>Allowed values: &gt;= 1</p>
503<p>Default value: 200000</p>
504</div>
505<hr>
506<div class="refsect2">
507<a name="GstAudioBaseSrc--latency-time"></a><h3>The <code class="literal">“latency-time”</code> property</h3>
508<pre class="programlisting">  “latency-time”             <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
509<p>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".</p>
510<p>Flags: Read / Write</p>
511<p>Allowed values: &gt;= 1</p>
512<p>Default value: 10000</p>
513</div>
514<hr>
515<div class="refsect2">
516<a name="GstAudioBaseSrc--provide-clock"></a><h3>The <code class="literal">“provide-clock”</code> property</h3>
517<pre class="programlisting">  “provide-clock”            <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
518<p>Provide a clock to be used as the global pipeline clock.</p>
519<p>Flags: Read / Write</p>
520<p>Default value: TRUE</p>
521</div>
522<hr>
523<div class="refsect2">
524<a name="GstAudioBaseSrc--slave-method"></a><h3>The <code class="literal">“slave-method”</code> property</h3>
525<pre class="programlisting">  “slave-method”             <a class="link" href="GstAudioBaseSrc.html#GstAudioBaseSrcSlaveMethod" title="enum GstAudioBaseSrcSlaveMethod"><span class="type">GstAudioBaseSrcSlaveMethod</span></a></pre>
526<p>Algorithm used to match the rate of the masterclock.</p>
527<p>Flags: Read / Write</p>
528<p>Default value: GST_AUDIO_BASE_SRC_SLAVE_SKEW</p>
529</div>
530</div>
531<div class="refsect1">
532<a name="GstAudioBaseSrc.see-also"></a><h2>See Also</h2>
533<p><a class="link" href="GstAudioSrc.html" title="GstAudioSrc"><span class="type">GstAudioSrc</span></a>, <a class="link" href="GstAudioRingBuffer.html" title="GstAudioRingBuffer"><span class="type">GstAudioRingBuffer</span></a>.</p>
534</div>
535</div>
536<div class="footer">
537<hr>Generated by GTK-Doc V1.28</div>
538</body>
539</html>