Debian Codegraph @

opcodes/filebit.xml

raw symbols SCIP
1
2 <refentry id="filebit">
3 <indexterm id="IndexFileBit"><primary>filebit</primary></indexterm>
4 <refentryinfo><title>Signal I/O:Soundfile Queries</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>filebit</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>filebit</refname>
13 <refpurpose>
14 Returns the number of bits in each sample in a sound file.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Returns the number of bits in each sample in a sound file.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ir <command>filebit</command> ifilcod [, iallowraw]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>ifilcod</emphasis> -- sound file to be queried
34 </para>
35 <para>
36 <emphasis>iallowraw</emphasis> -- (Optional) Allow raw sound files (default=1)
37 </para>
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42 <para>
43 <emphasis>filebit</emphasis> returns the number of bits in each
44 sample in the sound file <emphasis>ifilcod</emphasis>. In the
45 case of floating point samples the value -1 is returned for
46 floats and -2 for doubles. For non-PCM formats the value is
47 negative, and based on libsndfile's format encoding.
48 </para>
49 </refsect1>
50
51 <refsect1>
52 <title>Examples</title>
53 <para>
54 Here is an example of the filebit opcode. It uses the file <ulink url="examples/filebit.csd"><citetitle>filebit.csd</citetitle></ulink>,
55 and <ulink url="examples/mary.wav"><citetitle>mary.wav</citetitle></ulink>.
56
57 <example>
58 <title>Example of the filebit opcode.</title>
59
60
61
62 <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>
63 <xi:include href="examples-xml/filebit.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
64 </example>
65
66 The audio file <quote>mary.wav</quote> is in monoaural CD format, so <emphasis>filebit</emphasis>'s output should include a line like this:
67 <screen>
68 bit depth = 16 bit
69 </screen>
70 </para>
71 </refsect1>
72
73 <refsect1>
74 <title>See also</title>
75 <para><link linkend="SigioQueries"><citetitle>Sound File Queries</citetitle></link></para>
76 </refsect1>
77
78 <refsect1>
79 <title>Credits</title>
80 <para>
81 <simplelist>
82 <member>Author: &namevictor;</member>
83 <member>July 1999</member>
84 </simplelist>
85 </para>
86
87 <para>New in Csound version 5.11</para>
88 </refsect1>
89 </refentry>