Debian Codegraph @

opcodes/filevalid.xml

raw symbols SCIP
1
2 <refentry id="filevalid">
3 <indexterm id="IndexFilevalid"><primary>filevalid</primary></indexterm>
4 <refentryinfo><title>Signal I/O:Soundfile Queries</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>filevalid</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>filevalid</refname>
11 <refpurpose>
12 Checks that a file can be read at initialisation or performance time.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Returns 1 if the sound file exists and is readable, or 0 if not.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ir <command>filevalid</command> ifilcod</synopsis>
26 <synopsis>kr <command>filevalid</command> ifilcod</synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>ifilcod</emphasis> -- sound file to be queried
33 </para>
34 <para>
35 <emphasis>ir</emphasis> -- return code (1 if the sound file
36 <emphasis>ifilcod</emphasis> can be read).
37 </para>
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42 <para>
43 <emphasis>kr</emphasis> -- return code (1 if the sound file
44 <emphasis>ifilcod</emphasis> can be read).
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Examples</title>
50 <para>
51 Here is an example of the filevalid opcode. It uses the file <ulink url="examples/filevalid.csd"><citetitle>filevalid.csd</citetitle></ulink>.
52
53 <example>
54 <title>Example of the filevalid opcode.</title>
55
56 <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>
57 <xi:include href="examples-xml/filevalid.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
58 </example>
59 The output should include a line like this:
60 <screen>
61 Audiofile 'frox.wav' does not exist!
62 </screen>
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>See also</title>
68 <para><link linkend="SigioQueries"><citetitle>Sound File Queries</citetitle></link></para>
69 </refsect1>
70
71 <refsect1>
72 <title>Credits</title>
73 <para>
74 <simplelist>
75 <member>Author: &namematt;</member>
76 <member>July 2010</member>
77 </simplelist>
78 </para>
79
80 <para>New in Csound version 5.13</para>
81 </refsect1>
82 </refentry>