1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>waveformsink</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7 <link rel="home" href="index.html" title="GStreamer Good Plugins 0.10 Plugins Reference Manual">
8 <link rel="up" href="ch01.html" title="gst-plugins-good Elements">
9 <link rel="prev" href="gst-plugins-good-plugins-wavenc.html" title="wavenc">
10 <link rel="next" href="gst-plugins-good-plugins-wavpackdec.html" title="wavpackdec">
11 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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="2">
17 <td><a accesskey="p" href="gst-plugins-good-plugins-wavenc.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GStreamer Good Plugins 0.10 Plugins Reference Manual</th>
21 <td><a accesskey="n" href="gst-plugins-good-plugins-wavpackdec.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#gst-plugins-good-plugins-waveformsink.synopsis" class="shortcut">Top</a>
26 <a href="#gst-plugins-good-plugins-waveformsink.description" class="shortcut">Description</a>
29 <div class="refentry">
30 <a name="gst-plugins-good-plugins-waveformsink"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
33 <h2><span class="refentrytitle"><a name="gst-plugins-good-plugins-waveformsink.top_of_page"></a>waveformsink</span></h2>
34 <p>waveformsink — WaveForm audio sink</p>
36 <td valign="top" align="right"></td>
38 <div class="refsynopsisdiv">
39 <a name="gst-plugins-good-plugins-waveformsink.synopsis"></a><h2>Synopsis</h2>
40 <pre class="synopsis">struct <a class="link" href="gst-plugins-good-plugins-waveformsink.html#GstWaveFormSink" title="struct GstWaveFormSink">GstWaveFormSink</a>;
43 <div class="refsect1">
44 <a name="gst-plugins-good-plugins-waveformsink.description"></a><h2>Description</h2>
46 This element lets you output sound using the Windows WaveForm API.
49 Note that you should almost always use generic audio conversion elements
50 like audioconvert and audioresample in front of an audiosink to make sure
51 your pipeline works under all circumstances (those conversion elements will
52 act in passthrough-mode if no conversion is necessary).
56 <div class="refsect2">
57 <a name="idp24035104"></a><h3>Example pipelines</h3>
58 <div class="informalexample">
59 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
62 <td class="listing_lines" align="right"><pre>1</pre></td>
63 <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch <span class="gtkdoc opt">-</span>v audiotestsrc <span class="gtkdoc opt">!</span> audioconvert <span class="gtkdoc opt">!</span> volume volume<span class="gtkdoc opt">=</span><span class="number">0.1</span> <span class="gtkdoc opt">!</span> waveformsink</pre></td>
68 will output a sine wave (continuous beep sound) to your sound card (with
69 a very low volume as precaution).
70 <div class="informalexample">
71 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
74 <td class="listing_lines" align="right"><pre>1</pre></td>
75 <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch <span class="gtkdoc opt">-</span>v filesrc location<span class="gtkdoc opt">=</span>music<span class="gtkdoc opt">.</span>ogg <span class="gtkdoc opt">!</span> decodebin <span class="gtkdoc opt">!</span> audioconvert <span class="gtkdoc opt">!</span> audioresample <span class="gtkdoc opt">!</span> waveformsink</pre></td>
80 will play an Ogg/Vorbis audio file and output it.
84 <div class="refsynopsisdiv">
86 <div class="refsect2">
87 <a name="idp22850832"></a><h3>Element Information</h3>
88 <div class="variablelist"><table border="0">
89 <col align="left" valign="top">
92 <td><p><span class="term">plugin</span></p></td>
94 <a class="link" href="gst-plugins-good-plugins-plugin-waveform.html#plugin-waveform">waveform</a>
98 <td><p><span class="term">author</span></p></td>
99 <td>Sebastien Moutte <sebastien@moutte.net></td>
102 <td><p><span class="term">class</span></p></td>
109 <div class="refsect2">
110 <a name="idp21046080"></a><h3>Element Pads</h3>
116 <div class="refsect1">
117 <a name="gst-plugins-good-plugins-waveformsink.details"></a><h2>Details</h2>
118 <div class="refsect2">
119 <a name="GstWaveFormSink"></a><h3>struct GstWaveFormSink</h3>
120 <pre class="programlisting">struct GstWaveFormSink {
125 GstCaps *cached_caps;
127 /* handle to the waveform-audio output device */
130 /* table of buffer headers */
131 WAVEHDR *wave_buffers;
133 /* critical section protecting access to the number of free buffers */
134 CRITICAL_SECTION critic_wave;
136 /* number of free buffers available */
137 guint free_buffers_count;
139 /* current free buffer where you have to write incoming data */
142 /* size of buffers streamed to the device */
145 /* number of buffers streamed to the device */
148 /* total of bytes in queue before they are written to the device */
149 guint bytes_in_queue;
151 /* bytes per sample from setcaps used to evaluate the number samples returned by delay */
152 guint bytes_per_sample;
154 /* wave form error string */
155 gchar error_string[ERROR_LENGTH];
165 Generated by GTK-Doc V1.17</div>