Debian Codegraph @

opcodes/nchnls_hw.xml

raw symbols SCIP
1
2 <refentry id="nchnls_hw">
3 <indexterm id="Indexnchnls_hw"><primary>nchnls_hw</primary></indexterm>
4 <refentryinfo><title>Miscellaneous</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>nchnls_hw</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>nchnls_hw</refname>
11 <refpurpose>
12 Returns the number of audio channels in the underlying hardware.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Returns the maximum number of audio channels in the underlying
20 hardware. This does not necessarily correspond to the number of
21 channels used by Csound (set by nchnls and nchnls_i).
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>idacc,iadcc <command>nchnls_hw</command></synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 On init-pass idacc will contain the number of channels in the
34 output device, and iadcc, the number of input channels. These will
35 correspond to the currently selected/in-use hardware devices.
36 </para>
37 </refsect1>
38
39 <refsect1>
40 <title>Examples</title>
41 <para>
42 Here is an example of the nchnls_hw opcode. It uses the file <ulink url="examples/nchnls_hw.csd"><citetitle>nchnls_hw.csd</citetitle></ulink>.
43 <example>
44 <title>Example of the nchnls_hw opcode.</title>
45 <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>
46 <xi:include href="examples-xml/nchnls_hw.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
47 </example>
48 The output should include lines like these:
49 <screen>
50 on this machine:
51 number of outputs = 32
52 number of inputs = 32</screen>
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>See also</title>
58 <para><link linkend="MiscopcodesTop"><citetitle>Miscellaneous opcodes</citetitle></link></para>
59 </refsect1>
60
61 <refsect1>
62 <title>Credits</title>
63 <para>
64 <simplelist>
65 <member>Author: &namevictor;</member>
66 <member>2016</member>
67 </simplelist>
68 </para>
69 <para>In version 6.07</para>
70 </refsect1>
71 </refentry>