Debian Codegraph @

opcodes/dssiactivate.xml

raw symbols SCIP
1
2 <refentry id="dssiactivate">
3 <indexterm id="IndexDssiactivate"><primary>dssiactivate</primary></indexterm>
4 <refentryinfo><title>Plugin Hosting:DSSI and LADSPA</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>dssiactivate</refentrytitle>
7 </refmeta>
8 <refnamediv>
9 <refname>dssiactivate</refname>
10 <refpurpose>Activates or deactivates a DSSI or LADSPA plugin.
11 </refpurpose>
12 </refnamediv>
13 <note>plugin: Requires dssi4cs plugin</note>
14 <refsect1>
15 <title>Syntax</title>
16 <synopsis><command>dssiactivate</command> ihandle, ktoggle </synopsis>
17 </refsect1>
18
19 <refsect1>
20 <title>Description</title>
21 <para>Plugin opcode in dssi4cs.</para>
22 <para><emphasis>dssiactivate</emphasis> is used to activate or deactivate a DSSI or LADSPA plugin. It calles the plugin's activate() and deactivate() functions if they are provided.</para>
23 </refsect1>
24 <refsect1>
25 <title>Initialization</title>
26 <para><emphasis>ihandle</emphasis> - the number which identifies the
27 plugin, generated by <link linkend="dssiinit"><citetitle>dssiinit</citetitle></link>.</para>
28 </refsect1>
29 <refsect1>
30 <title>Performance</title>
31 <para><emphasis>ktoggle</emphasis> - Selects between activation (ktoggle=1) and deactivation (ktoggle=0).</para>
32 <para> <emphasis>dssiactivate</emphasis> is used to turn on and off plugins if they provide this facility. This may help conserve CPU processing in some cases. For consistency, all plugins must be activated to produce sound. An inactive plugin produces silence.
33 </para>
34 <para>Depending on the plugin's implementation, this may cause interruptions in the realtime audio process, so use with caution.
35 </para>
36 <para>
37 <emphasis>dssiactivate</emphasis> may cause audio stream breakups when used in realtime, so it is recommended to load all plugins to be used before playing.</para>
38 <warning>
39 <para>Please note that even if activate() and deactivate() functions are not present in a plugin, <emphasis>dssiactivate</emphasis> must be called for the plugin to produce sound.</para>
40 </warning>
41 </refsect1>
42
43 <refsect1>
44 <title>Examples</title>
45 <para>
46 Here is an example of the dssiactivate opcode. It uses the file <ulink url="examples/dssiactivate.csd"><citetitle>dssiactivate.csd</citetitle></ulink>.
47
48 <example>
49 <title>Example of the dssiactivate opcode.</title>
50 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
51 <xi:include href="examples-xml/dssiactivate.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
52 </example>
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>See also</title>
58 <para><link linkend="dssi4cs"><citetitle>DSSI and LADSPA</citetitle></link></para>
59 </refsect1>
60
61 <refsect1>
62 <title>Credits</title>
63 <para>2005</para>
64 <para>By: &nameandres;</para>
65 <para>Uses code from Richard Furse's LADSPA sdk.</para>
66 </refsect1>
67 </refentry>