• 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>GstAudioBaseSink: 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="GstAudioSrc.html" title="GstAudioSrc">
10<link rel="next" href="GstAudioBaseSrc.html" title="GstAudioBaseSrc">
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="#GstAudioBaseSink.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span19                  <a href="#GstAudioBaseSink.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span20                  <a href="#GstAudioBaseSink.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="GstAudioSrc.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25<td><a accesskey="n" href="GstAudioBaseSrc.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="GstAudioBaseSink"></a><div class="titlepage"></div>
29<div class="refnamediv"><table width="100%"><tr>
30<td valign="top">
31<h2><span class="refentrytitle"><a name="GstAudioBaseSink.top_of_page"></a>GstAudioBaseSink</span></h2>
32<p>GstAudioBaseSink — Base class for audio sinks</p>
33</td>
34<td class="gallery_image" valign="top" align="right"></td>
35</tr></table></div>
36<div class="refsect1">
37<a name="GstAudioBaseSink.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="function_type">
46<span class="returnvalue">void</span>
47</td>
48<td class="function_name">
49<span class="c_punctuation">(</span><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkCustomSlavingCallback" title="GstAudioBaseSinkCustomSlavingCallback ()">*GstAudioBaseSinkCustomSlavingCallback</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
50</td>
51</tr>
52<tr>
53<td class="define_keyword">#define</td>
54<td class="function_name">
55<a class="link" href="GstAudioBaseSink.html#GST-AUDIO-BASE-SINK-CLOCK:CAPS" title="GST_AUDIO_BASE_SINK_CLOCK()">GST_AUDIO_BASE_SINK_CLOCK</a><span class="c_punctuation">()</span>
56</td>
57</tr>
58<tr>
59<td class="define_keyword">#define</td>
60<td class="function_name">
61<a class="link" href="GstAudioBaseSink.html#GST-AUDIO-BASE-SINK-PAD:CAPS" title="GST_AUDIO_BASE_SINK_PAD()">GST_AUDIO_BASE_SINK_PAD</a><span class="c_punctuation">()</span>
62</td>
63</tr>
64<tr>
65<td class="function_type">
66<a class="link" href="GstAudioRingBuffer.html" title="GstAudioRingBuffer"><span class="returnvalue">GstAudioRingBuffer</span></a> *
67</td>
68<td class="function_name">
69<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-create-ringbuffer" title="gst_audio_base_sink_create_ringbuffer ()">gst_audio_base_sink_create_ringbuffer</a> <span class="c_punctuation">()</span>
70</td>
71</tr>
72<tr>
73<td class="function_type">
74<span class="returnvalue">void</span>
75</td>
76<td class="function_name">
77<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-set-provide-clock" title="gst_audio_base_sink_set_provide_clock ()">gst_audio_base_sink_set_provide_clock</a> <span class="c_punctuation">()</span>
78</td>
79</tr>
80<tr>
81<td class="function_type">
82<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
83</td>
84<td class="function_name">
85<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-get-provide-clock" title="gst_audio_base_sink_get_provide_clock ()">gst_audio_base_sink_get_provide_clock</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="GstAudioBaseSink.html#gst-audio-base-sink-set-slave-method" title="gst_audio_base_sink_set_slave_method ()">gst_audio_base_sink_set_slave_method</a> <span class="c_punctuation">()</span>
94</td>
95</tr>
96<tr>
97<td class="function_type">
98<a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkSlaveMethod" title="enum GstAudioBaseSinkSlaveMethod"><span class="returnvalue">GstAudioBaseSinkSlaveMethod</span></a>
99</td>
100<td class="function_name">
101<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-get-slave-method" title="gst_audio_base_sink_get_slave_method ()">gst_audio_base_sink_get_slave_method</a> <span class="c_punctuation">()</span>
102</td>
103</tr>
104<tr>
105<td class="function_type">
106<span class="returnvalue">void</span>
107</td>
108<td class="function_name">
109<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-set-drift-tolerance" title="gst_audio_base_sink_set_drift_tolerance ()">gst_audio_base_sink_set_drift_tolerance</a> <span class="c_punctuation">()</span>
110</td>
111</tr>
112<tr>
113<td class="function_type">
114<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
115</td>
116<td class="function_name">
117<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-get-drift-tolerance" title="gst_audio_base_sink_get_drift_tolerance ()">gst_audio_base_sink_get_drift_tolerance</a> <span class="c_punctuation">()</span>
118</td>
119</tr>
120<tr>
121<td class="function_type">
122<span class="returnvalue">void</span>
123</td>
124<td class="function_name">
125<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-set-alignment-threshold" title="gst_audio_base_sink_set_alignment_threshold ()">gst_audio_base_sink_set_alignment_threshold</a> <span class="c_punctuation">()</span>
126</td>
127</tr>
128<tr>
129<td class="function_type">
130<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="returnvalue">GstClockTime</span></a>
131</td>
132<td class="function_name">
133<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-get-alignment-threshold" title="gst_audio_base_sink_get_alignment_threshold ()">gst_audio_base_sink_get_alignment_threshold</a> <span class="c_punctuation">()</span>
134</td>
135</tr>
136<tr>
137<td class="function_type">
138<span class="returnvalue">void</span>
139</td>
140<td class="function_name">
141<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-set-discont-wait" title="gst_audio_base_sink_set_discont_wait ()">gst_audio_base_sink_set_discont_wait</a> <span class="c_punctuation">()</span>
142</td>
143</tr>
144<tr>
145<td class="function_type">
146<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="returnvalue">GstClockTime</span></a>
147</td>
148<td class="function_name">
149<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-get-discont-wait" title="gst_audio_base_sink_get_discont_wait ()">gst_audio_base_sink_get_discont_wait</a> <span class="c_punctuation">()</span>
150</td>
151</tr>
152<tr>
153<td class="function_type">
154<span class="returnvalue">void</span>
155</td>
156<td class="function_name">
157<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-set-custom-slaving-callback" title="gst_audio_base_sink_set_custom_slaving_callback ()">gst_audio_base_sink_set_custom_slaving_callback</a> <span class="c_punctuation">()</span>
158</td>
159</tr>
160<tr>
161<td class="function_type">
162<span class="returnvalue">void</span>
163</td>
164<td class="function_name">
165<a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-report-device-failure" title="gst_audio_base_sink_report_device_failure ()">gst_audio_base_sink_report_device_failure</a> <span class="c_punctuation">()</span>
166</td>
167</tr>
168</tbody>
169</table></div>
170</div>
171<div class="refsect1">
172<a name="GstAudioBaseSink.properties"></a><h2>Properties</h2>
173<div class="informaltable"><table class="informaltable" border="0">
174<colgroup>
175<col width="150px" class="properties_type">
176<col width="300px" class="properties_name">
177<col width="200px" class="properties_flags">
178</colgroup>
179<tbody>
180<tr>
181<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a></td>
182<td class="property_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSink--alignment-threshold" title="The “alignment-threshold” property">alignment-threshold</a></td>
183<td class="property_flags">Read / Write</td>
184</tr>
185<tr>
186<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
187<td class="property_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSink--buffer-time" title="The “buffer-time” property">buffer-time</a></td>
188<td class="property_flags">Read / Write</td>
189</tr>
190<tr>
191<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
192<td class="property_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSink--can-activate-pull" title="The “can-activate-pull” property">can-activate-pull</a></td>
193<td class="property_flags">Read / Write</td>
194</tr>
195<tr>
196<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a></td>
197<td class="property_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSink--discont-wait" title="The “discont-wait” property">discont-wait</a></td>
198<td class="property_flags">Read / Write</td>
199</tr>
200<tr>
201<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
202<td class="property_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSink--drift-tolerance" title="The “drift-tolerance” property">drift-tolerance</a></td>
203<td class="property_flags">Read / Write</td>
204</tr>
205<tr>
206<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
207<td class="property_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSink--latency-time" title="The “latency-time” property">latency-time</a></td>
208<td class="property_flags">Read / Write</td>
209</tr>
210<tr>
211<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
212<td class="property_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSink--provide-clock" title="The “provide-clock” property">provide-clock</a></td>
213<td class="property_flags">Read / Write</td>
214</tr>
215<tr>
216<td class="property_type"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkSlaveMethod" title="enum GstAudioBaseSinkSlaveMethod"><span class="type">GstAudioBaseSinkSlaveMethod</span></a></td>
217<td class="property_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSink--slave-method" title="The “slave-method” property">slave-method</a></td>
218<td class="property_flags">Read / Write</td>
219</tr>
220</tbody>
221</table></div>
222</div>
223<div class="refsect1">
224<a name="GstAudioBaseSink.other"></a><h2>Types and Values</h2>
225<div class="informaltable"><table class="informaltable" width="100%" border="0">
226<colgroup>
227<col width="150px" class="name">
228<col class="description">
229</colgroup>
230<tbody>
231<tr>
232<td class="datatype_keyword">struct</td>
233<td class="function_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSink-struct" title="struct GstAudioBaseSink">GstAudioBaseSink</a></td>
234</tr>
235<tr>
236<td class="datatype_keyword">struct</td>
237<td class="function_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkClass" title="struct GstAudioBaseSinkClass">GstAudioBaseSinkClass</a></td>
238</tr>
239<tr>
240<td class="datatype_keyword">enum</td>
241<td class="function_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkSlaveMethod" title="enum GstAudioBaseSinkSlaveMethod">GstAudioBaseSinkSlaveMethod</a></td>
242</tr>
243<tr>
244<td class="datatype_keyword">enum</td>
245<td class="function_name"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkDiscontReason" title="enum GstAudioBaseSinkDiscontReason">GstAudioBaseSinkDiscontReason</a></td>
246</tr>
247</tbody>
248</table></div>
249</div>
250<div class="refsect1">
251<a name="GstAudioBaseSink.object-hierarchy"></a><h2>Object Hierarchy</h2>
252<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GEnum</a>
253    <span class="lineart">├──</span> GstAudioBaseSinkDiscontReason
254    <span class="lineart">╰──</span> GstAudioBaseSinkSlaveMethod
255    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
256    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
257        <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a>
258            <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a>
259                <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstBaseSink.html#GstBaseSink-struct">GstBaseSink</a>
260                    <span class="lineart">╰──</span> GstAudioBaseSink
261                        <span class="lineart">╰──</span> <a class="link" href="GstAudioSink.html" title="GstAudioSink">GstAudioSink</a>
262</pre>
263</div>
264<div class="refsect1">
265<a name="GstAudioBaseSink.includes"></a><h2>Includes</h2>
266<pre class="synopsis">#include &lt;gst/audio/audio.h&gt;
267</pre>
268</div>
269<div class="refsect1">
270<a name="GstAudioBaseSink.description"></a><h2>Description</h2>
271<p>This is the base class for audio sinks. Subclasses need to implement the
272::create_ringbuffer vmethod. This base class will then take care of
273writing samples to the ringbuffer, synchronisation, clipping and flushing.</p>
274</div>
275<div class="refsect1">
276<a name="GstAudioBaseSink.functions_details"></a><h2>Functions</h2>
277<div class="refsect2">
278<a name="GstAudioBaseSinkCustomSlavingCallback"></a><h3>GstAudioBaseSinkCustomSlavingCallback ()</h3>
279<pre class="programlisting"><span class="returnvalue">void</span>
280<span class="c_punctuation">(</span>*GstAudioBaseSinkCustomSlavingCallback<span class="c_punctuation">)</span>
281                               (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>,
282                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> etime</code></em>,
283                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> itime</code></em>,
284                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTimeDiff"><span class="type">GstClockTimeDiff</span></a> *requested_skew</code></em>,
285                                <em class="parameter"><code><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkDiscontReason" title="enum GstAudioBaseSinkDiscontReason"><span class="type">GstAudioBaseSinkDiscontReason</span></a> discont_reason</code></em>,
286                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
287<p>This function is set with <a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-set-custom-slaving-callback" title="gst_audio_base_sink_set_custom_slaving_callback ()"><code class="function">gst_audio_base_sink_set_custom_slaving_callback()</code></a>
288and is called during playback. It receives the current time of external and
289internal clocks, which the callback can then use to apply any custom
290slaving/synchronization schemes.</p>
291<p>The external clock is the sink's element clock, the internal one is the
292internal audio clock. The internal audio clock's calibration is applied to
293the timestamps before they are passed to the callback. The difference between
294etime and itime is the skew; how much internal and external clock lie apart
295from each other. A skew of 0 means both clocks are perfectly in sync.
296itime &gt; etime means the external clock is going slower, while itime &lt; etime
297means it is going faster than the internal clock. etime and itime are always
298valid timestamps, except for when a discontinuity happens.</p>
299<p>requested_skew is an output value the callback can write to. It informs the
300sink of whether or not it should move the playout pointer, and if so, by how
301much. This pointer is only NULL if a discontinuity occurs; otherwise, it is
302safe to write to *requested_skew. The default skew is 0.</p>
303<p>The sink may experience discontinuities. If one happens, discont is TRUE,
304itime, etime are set to GST_CLOCK_TIME_NONE, and requested_skew is NULL.
305This makes it possible to reset custom clock slaving algorithms when a
306discontinuity happens.</p>
307<div class="refsect3">
308<a name="GstAudioBaseSinkCustomSlavingCallback.parameters"></a><h4>Parameters</h4>
309<div class="informaltable"><table class="informaltable" width="100%" border="0">
310<colgroup>
311<col width="150px" class="parameters_name">
312<col class="parameters_description">
313<col width="200px" class="parameters_annotations">
314</colgroup>
315<tbody>
316<tr>
317<td class="parameter_name"><p>sink</p></td>
318<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
319<td class="parameter_annotations"> </td>
320</tr>
321<tr>
322<td class="parameter_name"><p>etime</p></td>
323<td class="parameter_description"><p>external clock time</p></td>
324<td class="parameter_annotations"> </td>
325</tr>
326<tr>
327<td class="parameter_name"><p>itime</p></td>
328<td class="parameter_description"><p>internal clock time</p></td>
329<td class="parameter_annotations"> </td>
330</tr>
331<tr>
332<td class="parameter_name"><p>requested_skew</p></td>
333<td class="parameter_description"><p>skew amount requested by the callback</p></td>
334<td class="parameter_annotations"> </td>
335</tr>
336<tr>
337<td class="parameter_name"><p>discont_reason</p></td>
338<td class="parameter_description"><p>reason for discontinuity (if any)</p></td>
339<td class="parameter_annotations"> </td>
340</tr>
341<tr>
342<td class="parameter_name"><p>user_data</p></td>
343<td class="parameter_description"><p>user data</p></td>
344<td class="parameter_annotations"> </td>
345</tr>
346</tbody>
347</table></div>
348</div>
349<p class="since">Since: <a class="link" href="ix10.html#api-index-1.6">1.6</a></p>
350</div>
351<hr>
352<div class="refsect2">
353<a name="GST-AUDIO-BASE-SINK-CLOCK:CAPS"></a><h3>GST_AUDIO_BASE_SINK_CLOCK()</h3>
354<pre class="programlisting">#define GST_AUDIO_BASE_SINK_CLOCK(obj)   (GST_AUDIO_BASE_SINK (obj)-&gt;clock)
355</pre>
356<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>
357.</p>
358<div class="refsect3">
359<a name="GST-AUDIO-BASE-SINK-CLOCK.parameters"></a><h4>Parameters</h4>
360<div class="informaltable"><table class="informaltable" width="100%" border="0">
361<colgroup>
362<col width="150px" class="parameters_name">
363<col class="parameters_description">
364<col width="200px" class="parameters_annotations">
365</colgroup>
366<tbody><tr>
367<td class="parameter_name"><p>obj</p></td>
368<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
369<td class="parameter_annotations"> </td>
370</tr></tbody>
371</table></div>
372</div>
373</div>
374<hr>
375<div class="refsect2">
376<a name="GST-AUDIO-BASE-SINK-PAD:CAPS"></a><h3>GST_AUDIO_BASE_SINK_PAD()</h3>
377<pre class="programlisting">#define GST_AUDIO_BASE_SINK_PAD(obj)     (GST_BASE_SINK (obj)-&gt;sinkpad)
378</pre>
379<p>Get the sink <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>
380.</p>
381<div class="refsect3">
382<a name="GST-AUDIO-BASE-SINK-PAD.parameters"></a><h4>Parameters</h4>
383<div class="informaltable"><table class="informaltable" width="100%" border="0">
384<colgroup>
385<col width="150px" class="parameters_name">
386<col class="parameters_description">
387<col width="200px" class="parameters_annotations">
388</colgroup>
389<tbody><tr>
390<td class="parameter_name"><p>obj</p></td>
391<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
392<td class="parameter_annotations"> </td>
393</tr></tbody>
394</table></div>
395</div>
396</div>
397<hr>
398<div class="refsect2">
399<a name="gst-audio-base-sink-create-ringbuffer"></a><h3>gst_audio_base_sink_create_ringbuffer ()</h3>
400<pre class="programlisting"><a class="link" href="GstAudioRingBuffer.html" title="GstAudioRingBuffer"><span class="returnvalue">GstAudioRingBuffer</span></a> *
401gst_audio_base_sink_create_ringbuffer (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>);</pre>
402<p>Create and return the <a class="link" href="GstAudioRingBuffer.html" title="GstAudioRingBuffer"><span class="type">GstAudioRingBuffer</span></a> for <em class="parameter"><code>sink</code></em>
403. This function will
404call the ::create_ringbuffer vmethod and will set <em class="parameter"><code>sink</code></em>
405 as the parent of
406the returned 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>
407<div class="refsect3">
408<a name="gst-audio-base-sink-create-ringbuffer.parameters"></a><h4>Parameters</h4>
409<div class="informaltable"><table class="informaltable" width="100%" border="0">
410<colgroup>
411<col width="150px" class="parameters_name">
412<col class="parameters_description">
413<col width="200px" class="parameters_annotations">
414</colgroup>
415<tbody><tr>
416<td class="parameter_name"><p>sink</p></td>
417<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a>.</p></td>
418<td class="parameter_annotations"> </td>
419</tr></tbody>
420</table></div>
421</div>
422<div class="refsect3">
423<a name="gst-audio-base-sink-create-ringbuffer.returns"></a><h4>Returns</h4>
424<p>The new ringbuffer of <em class="parameter"><code>sink</code></em>
425. </p>
426<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
427</div>
428</div>
429<hr>
430<div class="refsect2">
431<a name="gst-audio-base-sink-set-provide-clock"></a><h3>gst_audio_base_sink_set_provide_clock ()</h3>
432<pre class="programlisting"><span class="returnvalue">void</span>
433gst_audio_base_sink_set_provide_clock (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>,
434                                       <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>
435<p>Controls whether <em class="parameter"><code>sink</code></em>
436 will provide a clock or not. If <em class="parameter"><code>provide</code></em>
437 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>,
438<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
439of <em class="parameter"><code>sink</code></em>
440. If <em class="parameter"><code>provide</code></em>
441 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
442NULL.</p>
443<div class="refsect3">
444<a name="gst-audio-base-sink-set-provide-clock.parameters"></a><h4>Parameters</h4>
445<div class="informaltable"><table class="informaltable" width="100%" border="0">
446<colgroup>
447<col width="150px" class="parameters_name">
448<col class="parameters_description">
449<col width="200px" class="parameters_annotations">
450</colgroup>
451<tbody>
452<tr>
453<td class="parameter_name"><p>sink</p></td>
454<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
455<td class="parameter_annotations"> </td>
456</tr>
457<tr>
458<td class="parameter_name"><p>provide</p></td>
459<td class="parameter_description"><p>new state</p></td>
460<td class="parameter_annotations"> </td>
461</tr>
462</tbody>
463</table></div>
464</div>
465</div>
466<hr>
467<div class="refsect2">
468<a name="gst-audio-base-sink-get-provide-clock"></a><h3>gst_audio_base_sink_get_provide_clock ()</h3>
469<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
470gst_audio_base_sink_get_provide_clock (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>);</pre>
471<p>Queries whether <em class="parameter"><code>sink</code></em>
472 will provide a clock or not. See also
473gst_audio_base_sink_set_provide_clock.</p>
474<div class="refsect3">
475<a name="gst-audio-base-sink-get-provide-clock.parameters"></a><h4>Parameters</h4>
476<div class="informaltable"><table class="informaltable" width="100%" border="0">
477<colgroup>
478<col width="150px" class="parameters_name">
479<col class="parameters_description">
480<col width="200px" class="parameters_annotations">
481</colgroup>
482<tbody><tr>
483<td class="parameter_name"><p>sink</p></td>
484<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
485<td class="parameter_annotations"> </td>
486</tr></tbody>
487</table></div>
488</div>
489<div class="refsect3">
490<a name="gst-audio-base-sink-get-provide-clock.returns"></a><h4>Returns</h4>
491<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>sink</code></em>
492will provide a clock.</p>
493</div>
494</div>
495<hr>
496<div class="refsect2">
497<a name="gst-audio-base-sink-set-slave-method"></a><h3>gst_audio_base_sink_set_slave_method ()</h3>
498<pre class="programlisting"><span class="returnvalue">void</span>
499gst_audio_base_sink_set_slave_method (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>,
500                                      <em class="parameter"><code><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkSlaveMethod" title="enum GstAudioBaseSinkSlaveMethod"><span class="type">GstAudioBaseSinkSlaveMethod</span></a> method</code></em>);</pre>
501<p>Controls how clock slaving will be performed in <em class="parameter"><code>sink</code></em>
502.</p>
503<div class="refsect3">
504<a name="gst-audio-base-sink-set-slave-method.parameters"></a><h4>Parameters</h4>
505<div class="informaltable"><table class="informaltable" width="100%" border="0">
506<colgroup>
507<col width="150px" class="parameters_name">
508<col class="parameters_description">
509<col width="200px" class="parameters_annotations">
510</colgroup>
511<tbody>
512<tr>
513<td class="parameter_name"><p>sink</p></td>
514<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
515<td class="parameter_annotations"> </td>
516</tr>
517<tr>
518<td class="parameter_name"><p>method</p></td>
519<td class="parameter_description"><p>the new slave method</p></td>
520<td class="parameter_annotations"> </td>
521</tr>
522</tbody>
523</table></div>
524</div>
525</div>
526<hr>
527<div class="refsect2">
528<a name="gst-audio-base-sink-get-slave-method"></a><h3>gst_audio_base_sink_get_slave_method ()</h3>
529<pre class="programlisting"><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkSlaveMethod" title="enum GstAudioBaseSinkSlaveMethod"><span class="returnvalue">GstAudioBaseSinkSlaveMethod</span></a>
530gst_audio_base_sink_get_slave_method (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>);</pre>
531<p>Get the current slave method used by <em class="parameter"><code>sink</code></em>
532.</p>
533<div class="refsect3">
534<a name="gst-audio-base-sink-get-slave-method.parameters"></a><h4>Parameters</h4>
535<div class="informaltable"><table class="informaltable" width="100%" border="0">
536<colgroup>
537<col width="150px" class="parameters_name">
538<col class="parameters_description">
539<col width="200px" class="parameters_annotations">
540</colgroup>
541<tbody><tr>
542<td class="parameter_name"><p>sink</p></td>
543<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
544<td class="parameter_annotations"> </td>
545</tr></tbody>
546</table></div>
547</div>
548<div class="refsect3">
549<a name="gst-audio-base-sink-get-slave-method.returns"></a><h4>Returns</h4>
550<p> The current slave method used by <em class="parameter"><code>sink</code></em>
551.</p>
552</div>
553</div>
554<hr>
555<div class="refsect2">
556<a name="gst-audio-base-sink-set-drift-tolerance"></a><h3>gst_audio_base_sink_set_drift_tolerance ()</h3>
557<pre class="programlisting"><span class="returnvalue">void</span>
558gst_audio_base_sink_set_drift_tolerance
559                               (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>,
560                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> drift_tolerance</code></em>);</pre>
561<p>Controls the sink's drift tolerance.</p>
562<div class="refsect3">
563<a name="gst-audio-base-sink-set-drift-tolerance.parameters"></a><h4>Parameters</h4>
564<div class="informaltable"><table class="informaltable" width="100%" border="0">
565<colgroup>
566<col width="150px" class="parameters_name">
567<col class="parameters_description">
568<col width="200px" class="parameters_annotations">
569</colgroup>
570<tbody>
571<tr>
572<td class="parameter_name"><p>sink</p></td>
573<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
574<td class="parameter_annotations"> </td>
575</tr>
576<tr>
577<td class="parameter_name"><p>drift_tolerance</p></td>
578<td class="parameter_description"><p>the new drift tolerance in microseconds</p></td>
579<td class="parameter_annotations"> </td>
580</tr>
581</tbody>
582</table></div>
583</div>
584</div>
585<hr>
586<div class="refsect2">
587<a name="gst-audio-base-sink-get-drift-tolerance"></a><h3>gst_audio_base_sink_get_drift_tolerance ()</h3>
588<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
589gst_audio_base_sink_get_drift_tolerance
590                               (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>);</pre>
591<p>Get the current drift tolerance, in microseconds, used by <em class="parameter"><code>sink</code></em>
592.</p>
593<div class="refsect3">
594<a name="gst-audio-base-sink-get-drift-tolerance.parameters"></a><h4>Parameters</h4>
595<div class="informaltable"><table class="informaltable" width="100%" border="0">
596<colgroup>
597<col width="150px" class="parameters_name">
598<col class="parameters_description">
599<col width="200px" class="parameters_annotations">
600</colgroup>
601<tbody><tr>
602<td class="parameter_name"><p>sink</p></td>
603<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
604<td class="parameter_annotations"> </td>
605</tr></tbody>
606</table></div>
607</div>
608<div class="refsect3">
609<a name="gst-audio-base-sink-get-drift-tolerance.returns"></a><h4>Returns</h4>
610<p> The current drift tolerance used by <em class="parameter"><code>sink</code></em>
611.</p>
612</div>
613</div>
614<hr>
615<div class="refsect2">
616<a name="gst-audio-base-sink-set-alignment-threshold"></a><h3>gst_audio_base_sink_set_alignment_threshold ()</h3>
617<pre class="programlisting"><span class="returnvalue">void</span>
618gst_audio_base_sink_set_alignment_threshold
619                               (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>,
620                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> alignment_threshold</code></em>);</pre>
621<p>Controls the sink's alignment threshold.</p>
622<div class="refsect3">
623<a name="gst-audio-base-sink-set-alignment-threshold.parameters"></a><h4>Parameters</h4>
624<div class="informaltable"><table class="informaltable" width="100%" border="0">
625<colgroup>
626<col width="150px" class="parameters_name">
627<col class="parameters_description">
628<col width="200px" class="parameters_annotations">
629</colgroup>
630<tbody>
631<tr>
632<td class="parameter_name"><p>sink</p></td>
633<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
634<td class="parameter_annotations"> </td>
635</tr>
636<tr>
637<td class="parameter_name"><p>alignment_threshold</p></td>
638<td class="parameter_description"><p>the new alignment threshold in nanoseconds</p></td>
639<td class="parameter_annotations"> </td>
640</tr>
641</tbody>
642</table></div>
643</div>
644</div>
645<hr>
646<div class="refsect2">
647<a name="gst-audio-base-sink-get-alignment-threshold"></a><h3>gst_audio_base_sink_get_alignment_threshold ()</h3>
648<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="returnvalue">GstClockTime</span></a>
649gst_audio_base_sink_get_alignment_threshold
650                               (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>);</pre>
651<p>Get the current alignment threshold, in nanoseconds, used by <em class="parameter"><code>sink</code></em>
652.</p>
653<div class="refsect3">
654<a name="gst-audio-base-sink-get-alignment-threshold.parameters"></a><h4>Parameters</h4>
655<div class="informaltable"><table class="informaltable" width="100%" border="0">
656<colgroup>
657<col width="150px" class="parameters_name">
658<col class="parameters_description">
659<col width="200px" class="parameters_annotations">
660</colgroup>
661<tbody><tr>
662<td class="parameter_name"><p>sink</p></td>
663<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
664<td class="parameter_annotations"> </td>
665</tr></tbody>
666</table></div>
667</div>
668<div class="refsect3">
669<a name="gst-audio-base-sink-get-alignment-threshold.returns"></a><h4>Returns</h4>
670<p> The current alignment threshold used by <em class="parameter"><code>sink</code></em>
671.</p>
672</div>
673</div>
674<hr>
675<div class="refsect2">
676<a name="gst-audio-base-sink-set-discont-wait"></a><h3>gst_audio_base_sink_set_discont_wait ()</h3>
677<pre class="programlisting"><span class="returnvalue">void</span>
678gst_audio_base_sink_set_discont_wait (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>,
679                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> discont_wait</code></em>);</pre>
680<p>Controls how long the sink will wait before creating a discontinuity.</p>
681<div class="refsect3">
682<a name="gst-audio-base-sink-set-discont-wait.parameters"></a><h4>Parameters</h4>
683<div class="informaltable"><table class="informaltable" width="100%" border="0">
684<colgroup>
685<col width="150px" class="parameters_name">
686<col class="parameters_description">
687<col width="200px" class="parameters_annotations">
688</colgroup>
689<tbody>
690<tr>
691<td class="parameter_name"><p>sink</p></td>
692<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
693<td class="parameter_annotations"> </td>
694</tr>
695<tr>
696<td class="parameter_name"><p>discont_wait</p></td>
697<td class="parameter_description"><p>the new discont wait in nanoseconds</p></td>
698<td class="parameter_annotations"> </td>
699</tr>
700</tbody>
701</table></div>
702</div>
703</div>
704<hr>
705<div class="refsect2">
706<a name="gst-audio-base-sink-get-discont-wait"></a><h3>gst_audio_base_sink_get_discont_wait ()</h3>
707<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="returnvalue">GstClockTime</span></a>
708gst_audio_base_sink_get_discont_wait (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>);</pre>
709<p>Get the current discont wait, in nanoseconds, used by <em class="parameter"><code>sink</code></em>
710.</p>
711<div class="refsect3">
712<a name="gst-audio-base-sink-get-discont-wait.parameters"></a><h4>Parameters</h4>
713<div class="informaltable"><table class="informaltable" width="100%" border="0">
714<colgroup>
715<col width="150px" class="parameters_name">
716<col class="parameters_description">
717<col width="200px" class="parameters_annotations">
718</colgroup>
719<tbody><tr>
720<td class="parameter_name"><p>sink</p></td>
721<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
722<td class="parameter_annotations"> </td>
723</tr></tbody>
724</table></div>
725</div>
726<div class="refsect3">
727<a name="gst-audio-base-sink-get-discont-wait.returns"></a><h4>Returns</h4>
728<p> The current discont wait used by <em class="parameter"><code>sink</code></em>
729.</p>
730</div>
731</div>
732<hr>
733<div class="refsect2">
734<a name="gst-audio-base-sink-set-custom-slaving-callback"></a><h3>gst_audio_base_sink_set_custom_slaving_callback ()</h3>
735<pre class="programlisting"><span class="returnvalue">void</span>
736gst_audio_base_sink_set_custom_slaving_callback
737                               (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>,
738                                <em class="parameter"><code><a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkCustomSlavingCallback" title="GstAudioBaseSinkCustomSlavingCallback ()"><span class="type">GstAudioBaseSinkCustomSlavingCallback</span></a> callback</code></em>,
739                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
740                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> notify</code></em>);</pre>
741<p>Sets the custom slaving callback. This callback will
742be invoked if the slave-method property is set to
743GST_AUDIO_BASE_SINK_SLAVE_CUSTOM and the audio sink
744receives and plays samples.</p>
745<p>Setting the callback to NULL causes the sink to
746behave as if the GST_AUDIO_BASE_SINK_SLAVE_NONE
747method were used.</p>
748<div class="refsect3">
749<a name="gst-audio-base-sink-set-custom-slaving-callback.parameters"></a><h4>Parameters</h4>
750<div class="informaltable"><table class="informaltable" width="100%" border="0">
751<colgroup>
752<col width="150px" class="parameters_name">
753<col class="parameters_description">
754<col width="200px" class="parameters_annotations">
755</colgroup>
756<tbody>
757<tr>
758<td class="parameter_name"><p>sink</p></td>
759<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
760<td class="parameter_annotations"> </td>
761</tr>
762<tr>
763<td class="parameter_name"><p>callback</p></td>
764<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkCustomSlavingCallback" title="GstAudioBaseSinkCustomSlavingCallback ()"><span class="type">GstAudioBaseSinkCustomSlavingCallback</span></a></p></td>
765<td class="parameter_annotations"> </td>
766</tr>
767<tr>
768<td class="parameter_name"><p>user_data</p></td>
769<td class="parameter_description"><p>user data passed to the callback</p></td>
770<td class="parameter_annotations"> </td>
771</tr>
772<tr>
773<td class="parameter_name"><p>notify</p></td>
774<td class="parameter_description"><p>called when user_data becomes unused</p></td>
775<td class="parameter_annotations"> </td>
776</tr>
777</tbody>
778</table></div>
779</div>
780<p class="since">Since: <a class="link" href="ix10.html#api-index-1.6">1.6</a></p>
781</div>
782<hr>
783<div class="refsect2">
784<a name="gst-audio-base-sink-report-device-failure"></a><h3>gst_audio_base_sink_report_device_failure ()</h3>
785<pre class="programlisting"><span class="returnvalue">void</span>
786gst_audio_base_sink_report_device_failure
787                               (<em class="parameter"><code><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> *sink</code></em>);</pre>
788<p>Informs this base class that the audio output device has failed for
789some reason, causing a discontinuity (for example, because the device
790recovered from the error, but lost all contents of its ring buffer).
791This function is typically called by derived classes, and is useful
792for the custom slave method.</p>
793<div class="refsect3">
794<a name="gst-audio-base-sink-report-device-failure.parameters"></a><h4>Parameters</h4>
795<div class="informaltable"><table class="informaltable" width="100%" border="0">
796<colgroup>
797<col width="150px" class="parameters_name">
798<col class="parameters_description">
799<col width="200px" class="parameters_annotations">
800</colgroup>
801<tbody><tr>
802<td class="parameter_name"><p>sink</p></td>
803<td class="parameter_description"><p>a <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a></p></td>
804<td class="parameter_annotations"> </td>
805</tr></tbody>
806</table></div>
807</div>
808<p class="since">Since: <a class="link" href="ix10.html#api-index-1.6">1.6</a></p>
809</div>
810</div>
811<div class="refsect1">
812<a name="GstAudioBaseSink.other_details"></a><h2>Types and Values</h2>
813<div class="refsect2">
814<a name="GstAudioBaseSink-struct"></a><h3>struct GstAudioBaseSink</h3>
815<pre class="programlisting">struct GstAudioBaseSink;</pre>
816<p>Opaque <a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a>.</p>
817</div>
818<hr>
819<div class="refsect2">
820<a name="GstAudioBaseSinkClass"></a><h3>struct GstAudioBaseSinkClass</h3>
821<pre class="programlisting">struct GstAudioBaseSinkClass {
822  GstBaseSinkClass     parent_class;
823
824  /* subclass ringbuffer allocation */
825  GstAudioRingBuffer* (*create_ringbuffer)  (GstAudioBaseSink *sink);
826
827  /* subclass payloader */
828  GstBuffer*          (*payload)            (GstAudioBaseSink *sink,
829                                             GstBuffer        *buffer);
830};
831</pre>
832<p><a class="link" href="GstAudioBaseSink.html" title="GstAudioBaseSink"><span class="type">GstAudioBaseSink</span></a> class. Override the vmethod to implement
833functionality.</p>
834<div class="refsect3">
835<a name="GstAudioBaseSinkClass.members"></a><h4>Members</h4>
836<div class="informaltable"><table class="informaltable" width="100%" border="0">
837<colgroup>
838<col width="300px" class="struct_members_name">
839<col class="struct_members_description">
840<col width="200px" class="struct_members_annotations">
841</colgroup>
842<tbody>
843<tr>
844<td class="struct_member_name"><p><em class="structfield"><code><a name="GstAudioBaseSinkClass.create-ringbuffer"></a>create_ringbuffer</code></em> ()</p></td>
845<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 write to.</p></td>
846<td class="struct_member_annotations"> </td>
847</tr>
848<tr>
849<td class="struct_member_name"><p><em class="structfield"><code><a name="GstAudioBaseSinkClass.payload"></a>payload</code></em> ()</p></td>
850<td class="struct_member_description"><p>payload data in a format suitable to write to the sink. If no
851payloading is required, returns a reffed copy of the original
852buffer, else returns the payloaded buffer with all other metadata
853copied.</p></td>
854<td class="struct_member_annotations"> </td>
855</tr>
856</tbody>
857</table></div>
858</div>
859</div>
860<hr>
861<div class="refsect2">
862<a name="GstAudioBaseSinkSlaveMethod"></a><h3>enum GstAudioBaseSinkSlaveMethod</h3>
863<p>Different possible clock slaving algorithms used when the internal audio
864clock is not selected as the pipeline master clock.</p>
865<div class="refsect3">
866<a name="GstAudioBaseSinkSlaveMethod.members"></a><h4>Members</h4>
867<div class="informaltable"><table class="informaltable" width="100%" border="0">
868<colgroup>
869<col width="300px" class="enum_members_name">
870<col class="enum_members_description">
871<col width="200px" class="enum_members_annotations">
872</colgroup>
873<tbody>
874<tr>
875<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SINK-SLAVE-RESAMPLE:CAPS"></a>GST_AUDIO_BASE_SINK_SLAVE_RESAMPLE</p></td>
876<td class="enum_member_description">
877<p>Resample to match the master clock</p>
878</td>
879<td class="enum_member_annotations"> </td>
880</tr>
881<tr>
882<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SINK-SLAVE-SKEW:CAPS"></a>GST_AUDIO_BASE_SINK_SLAVE_SKEW</p></td>
883<td class="enum_member_description">
884<p>Adjust playout pointer when master clock
885drifts too much.</p>
886</td>
887<td class="enum_member_annotations"> </td>
888</tr>
889<tr>
890<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SINK-SLAVE-NONE:CAPS"></a>GST_AUDIO_BASE_SINK_SLAVE_NONE</p></td>
891<td class="enum_member_description">
892<p>No adjustment is done.</p>
893</td>
894<td class="enum_member_annotations"> </td>
895</tr>
896<tr>
897<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SINK-SLAVE-CUSTOM:CAPS"></a>GST_AUDIO_BASE_SINK_SLAVE_CUSTOM</p></td>
898<td class="enum_member_description">
899<p>Use custom clock slaving algorithm (Since: 1.6)</p>
900</td>
901<td class="enum_member_annotations"> </td>
902</tr>
903</tbody>
904</table></div>
905</div>
906</div>
907<hr>
908<div class="refsect2">
909<a name="GstAudioBaseSinkDiscontReason"></a><h3>enum GstAudioBaseSinkDiscontReason</h3>
910<p>Different possible reasons for discontinuities. This enum is useful for the custom
911slave method.</p>
912<div class="refsect3">
913<a name="GstAudioBaseSinkDiscontReason.members"></a><h4>Members</h4>
914<div class="informaltable"><table class="informaltable" width="100%" border="0">
915<colgroup>
916<col width="300px" class="enum_members_name">
917<col class="enum_members_description">
918<col width="200px" class="enum_members_annotations">
919</colgroup>
920<tbody>
921<tr>
922<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SINK-DISCONT-REASON-NO-DISCONT:CAPS"></a>GST_AUDIO_BASE_SINK_DISCONT_REASON_NO_DISCONT</p></td>
923<td class="enum_member_description">
924<p>No discontinuity occurred</p>
925</td>
926<td class="enum_member_annotations"> </td>
927</tr>
928<tr>
929<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SINK-DISCONT-REASON-NEW-CAPS"></a>GST_AUDIO_BASE_SINK_DISCONT_REASON_NEW_CAPS</p></td>
930<td class="enum_member_description">
931<p>New caps are set, causing renegotiotion</p>
932</td>
933<td class="enum_member_annotations"> </td>
934</tr>
935<tr>
936<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SINK-DISCONT-REASON-FLUSH:CAPS"></a>GST_AUDIO_BASE_SINK_DISCONT_REASON_FLUSH</p></td>
937<td class="enum_member_description">
938<p>Samples have been flushed</p>
939</td>
940<td class="enum_member_annotations"> </td>
941</tr>
942<tr>
943<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SINK-DISCONT-REASON-SYNC-LATENCY:CAPS"></a>GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY</p></td>
944<td class="enum_member_description">
945<p>Sink was synchronized to the estimated latency (occurs during initialization)</p>
946</td>
947<td class="enum_member_annotations"> </td>
948</tr>
949<tr>
950<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SINK-DISCONT-REASON-ALIGNMENT:CAPS"></a>GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT</p></td>
951<td class="enum_member_description">
952<p>Aligning buffers failed because the timestamps are too discontinuous</p>
953</td>
954<td class="enum_member_annotations"> </td>
955</tr>
956<tr>
957<td class="enum_member_name"><p><a name="GST-AUDIO-BASE-SINK-DISCONT-REASON-DEVICE-FAILURE:CAPS"></a>GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE</p></td>
958<td class="enum_member_description">
959<p>Audio output device experienced and recovered from an error but introduced latency in the process (see also <em class="parameter"><code><a class="link" href="GstAudioBaseSink.html#gst-audio-base-sink-report-device-failure" title="gst_audio_base_sink_report_device_failure ()"><code class="function">gst_audio_base_sink_report_device_failure()</code></a></code></em>
960)</p>
961</td>
962<td class="enum_member_annotations"> </td>
963</tr>
964</tbody>
965</table></div>
966</div>
967<p class="since">Since: <a class="link" href="ix10.html#api-index-1.6">1.6</a></p>
968</div>
969</div>
970<div class="refsect1">
971<a name="GstAudioBaseSink.property-details"></a><h2>Property Details</h2>
972<div class="refsect2">
973<a name="GstAudioBaseSink--alignment-threshold"></a><h3>The <code class="literal">“alignment-threshold”</code> property</h3>
974<pre class="programlisting">  “alignment-threshold”      <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a></pre>
975<p>Timestamp alignment threshold in nanoseconds.</p>
976<p>Flags: Read / Write</p>
977<p>Allowed values: [1,18446744073709551614]</p>
978<p>Default value: 40000000</p>
979</div>
980<hr>
981<div class="refsect2">
982<a name="GstAudioBaseSink--buffer-time"></a><h3>The <code class="literal">“buffer-time”</code> property</h3>
983<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>
984<p>Size of audio buffer in microseconds, this is the minimum latency that the sink reports.</p>
985<p>Flags: Read / Write</p>
986<p>Allowed values: &gt;= 1</p>
987<p>Default value: 200000</p>
988</div>
989<hr>
990<div class="refsect2">
991<a name="GstAudioBaseSink--can-activate-pull"></a><h3>The <code class="literal">“can-activate-pull”</code> property</h3>
992<pre class="programlisting">  “can-activate-pull”        <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
993<p>Allow pull-based scheduling.</p>
994<p>Flags: Read / Write</p>
995<p>Default value: FALSE</p>
996</div>
997<hr>
998<div class="refsect2">
999<a name="GstAudioBaseSink--discont-wait"></a><h3>The <code class="literal">“discont-wait”</code> property</h3>
1000<pre class="programlisting">  “discont-wait”             <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a></pre>
1001<p>A window of time in nanoseconds to wait before creating a discontinuity as
1002a result of breaching the drift-tolerance.</p>
1003<p>Flags: Read / Write</p>
1004<p>Allowed values: &lt;= 18446744073709551614</p>
1005<p>Default value: 1000000000</p>
1006</div>
1007<hr>
1008<div class="refsect2">
1009<a name="GstAudioBaseSink--drift-tolerance"></a><h3>The <code class="literal">“drift-tolerance”</code> property</h3>
1010<pre class="programlisting">  “drift-tolerance”          <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
1011<p>Controls the amount of time in microseconds that clocks are allowed
1012to drift before resynchronisation happens.</p>
1013<p>Flags: Read / Write</p>
1014<p>Allowed values: &gt;= 1</p>
1015<p>Default value: 40000</p>
1016</div>
1017<hr>
1018<div class="refsect2">
1019<a name="GstAudioBaseSink--latency-time"></a><h3>The <code class="literal">“latency-time”</code> property</h3>
1020<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>
1021<p>The minimum amount of data to write in each iteration in microseconds.</p>
1022<p>Flags: Read / Write</p>
1023<p>Allowed values: &gt;= 1</p>
1024<p>Default value: 10000</p>
1025</div>
1026<hr>
1027<div class="refsect2">
1028<a name="GstAudioBaseSink--provide-clock"></a><h3>The <code class="literal">“provide-clock”</code> property</h3>
1029<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>
1030<p>Provide a clock to be used as the global pipeline clock.</p>
1031<p>Flags: Read / Write</p>
1032<p>Default value: TRUE</p>
1033</div>
1034<hr>
1035<div class="refsect2">
1036<a name="GstAudioBaseSink--slave-method"></a><h3>The <code class="literal">“slave-method”</code> property</h3>
1037<pre class="programlisting">  “slave-method”             <a class="link" href="GstAudioBaseSink.html#GstAudioBaseSinkSlaveMethod" title="enum GstAudioBaseSinkSlaveMethod"><span class="type">GstAudioBaseSinkSlaveMethod</span></a></pre>
1038<p>Algorithm used to match the rate of the masterclock.</p>
1039<p>Flags: Read / Write</p>
1040<p>Default value: GST_AUDIO_BASE_SINK_SLAVE_SKEW</p>
1041</div>
1042</div>
1043<div class="refsect1">
1044<a name="GstAudioBaseSink.see-also"></a><h2>See Also</h2>
1045<p><a class="link" href="GstAudioSink.html" title="GstAudioSink"><span class="type">GstAudioSink</span></a>, <a class="link" href="GstAudioRingBuffer.html" title="GstAudioRingBuffer"><span class="type">GstAudioRingBuffer</span></a>.</p>
1046</div>
1047</div>
1048<div class="footer">
1049<hr>Generated by GTK-Doc V1.28</div>
1050</body>
1051</html>