Debian Codegraph @

opcodes/dssiinit.xml

raw symbols SCIP
1
2 <refentry id="dssiinit">
3 <indexterm id="IndexDssiinit"><primary>dssiinit</primary></indexterm>
4 <refentryinfo><title>Plugin Hosting:DSSI and LADSPA</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>dssiinit</refentrytitle>
7 </refmeta>
8 <refnamediv>
9 <refname>dssiinit</refname>
10 <refpurpose>Loads a DSSI or LADSPA plugin.
11 </refpurpose>
12 </refnamediv>
13 <note>plugin: Requires dssi4cs plugin</note>
14 <refsect1>
15 <title>Syntax</title>
16 <synopsis>ihandle <command>dssiinit</command> ilibraryname, iplugindex [, iverbose] </synopsis>
17 </refsect1>
18 <refsect1>
19 <title>Description</title>
20 <para>Plugin opcode in dssi4cs.</para>
21 <para><emphasis>dssiinit</emphasis> is used to load a DSSI or LADSPA plugin into memory for use with
22 the other dssi4cs opcodes. Both LADSPA effects and DSSI instruments can be used.</para>
23 </refsect1>
24
25 <refsect1>
26 <title>Initialization</title>
27 <para><emphasis>ihandle</emphasis> - the number which identifies the
28 plugin, to be passed to other dssi4cs opcodes.</para>
29 <para><emphasis>ilibraryname</emphasis> - the name of the .so (shared object) file to load.</para>
30 <para><emphasis>iplugindex</emphasis> - The index of the plugin to
31 be used, zero or greater.</para>
32 <para><emphasis>iverbose</emphasis> (optional) - show plugin information and
33 parameters when loading. (default = 1)</para>
34 <para> <emphasis>dssiinit</emphasis> looks for <emphasis>ilibraryname</emphasis> on LADSPA_PATH and DSSI_PATH. One of these variables must be set, otherwise <emphasis>dssiinit</emphasis> will return an error. LADSPA and DSSI libraries may contain more than one plugin which must be referenced by its index. <emphasis>dssiinit</emphasis> then attempts to find plugin index <emphasis>iplugindex</emphasis> in the library and load the plugin into memory if it is found. To find out which plugins you have available and their index numbers you can use: <link linkend="dssilist"><citetitle>dssilist</citetitle></link>. </para>
35 <para>If <emphasis>iverbose</emphasis> is not 0 (the default), information about the plugin detailing its characteristics and its ports will be shown. This information is important for opcodes like <link linkend="dssictls"><citetitle>dssictls</citetitle></link>.</para>
36 <para>Plugins are set to inactive by default, so you
37 <emphasis>*must*</emphasis> use <link
38 linkend="dssiactivate"><citetitle>dssiactivate</citetitle></link>
39 to get the plugin to produce sound. This is required even if the
40 plugin does not provide an activate() function.
41 </para>
42 <para>
43 <emphasis>dssiinit</emphasis> may cause audio stream breakups when used in realtime, so it is recommended to load all plugins to be used before playing.</para>
44 </refsect1>
45
46 <refsect1>
47 <title>Examples</title>
48 <para>
49 Here is an example of the dssinit opcode. It uses the file <ulink url="examples/dssiinit.csd"><citetitle>dssiinit.csd</citetitle></ulink>.
50 <example>
51 <title>Example of the dssiinit opcode. (Remember to change the Library name)</title>
52 <xi:include href="examples-xml/dssiinit.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
53 </example>
54 </para>
55 </refsect1>
56
57 <refsect1>
58 <title>See also</title>
59 <para><link linkend="dssi4cs"><citetitle>DSSI and LADSPA</citetitle></link></para>
60 </refsect1>
61
62 <refsect1>
63 <title>Credits</title>
64 <para>2005</para>
65 <para>By: &nameandres;</para>
66 <para>Uses code from Richard Furse's LADSPA sdk.</para>
67 </refsect1>
68 </refentry>