2004-01-28 15:08:17 +00:00
|
|
|
<chapter id="chapter-links">
|
2003-01-24 18:08:39 +00:00
|
|
|
<title>Linking elements</title>
|
|
|
|
<para>
|
|
|
|
You can link the different pads of elements together so that the elements
|
|
|
|
form a chain.
|
|
|
|
</para>
|
|
|
|
|
2004-01-28 15:08:17 +00:00
|
|
|
<figure float="1" id="section-link">
|
2003-01-24 18:08:39 +00:00
|
|
|
<title>Visualisation of three linked elements</title>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
2003-10-08 14:34:09 +00:00
|
|
|
<imagedata fileref="images/linked-elements.ℑ" format="&IMAGE;" />
|
2003-01-24 18:08:39 +00:00
|
|
|
</imageobject>
|
|
|
|
</mediaobject>
|
|
|
|
</figure>
|
|
|
|
<para>
|
|
|
|
By linking these three elements, we have created a very simple
|
|
|
|
chain. The effect of this will be that the output of the source element
|
|
|
|
(element1) will be used as input for the filter element (element2). The
|
|
|
|
filter element will do something with the data and send the result to
|
|
|
|
the final sink element (element3).
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Imagine the above graph as a simple MPEG audio decoder. The source
|
|
|
|
element is a disk source, the filter element is the MPEG decoder and
|
|
|
|
the sink element is your audiocard. We will use this simple graph to
|
|
|
|
construct an MPEG player later in this manual.
|
|
|
|
</para>
|
|
|
|
</chapter>
|