2
<refentry id="filevalid">
3
<indexterm id="IndexFilevalid"><primary>filevalid</primary></indexterm>
4
<refentryinfo><title>Signal I/O:Soundfile Queries</title></refentryinfo>
6
<refentrytitle>filevalid</refentrytitle>
12
<refname>filevalid</refname>
14
Checks that a file can be used.
19
<title>Description</title>
21
Returns 1 if the sound file is valid, or 0 if not.
27
<synopsis>ir <command>filevalid</command> ifilcod</synopsis>
31
<title>Initialization</title>
33
<emphasis>ifilcod</emphasis> -- sound file to be queried
38
<title>Performance</title>
40
<emphasis>filevalid</emphasis> returns 1 if the sound file <emphasis>ifilcod</emphasis> can be used.
45
<title>Examples</title>
47
Here is an example of the filevalid opcode. It uses the file <ulink url="examples/filevalid.csd"><citetitle>filevalid.csd</citetitle></ulink>, and <ulink url="examples/mary.wav"><citetitle>mary.wav</citetitle></ulink>.
50
<title>Example of the filevalid opcode.</title>
54
<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>
55
<xi:include href="examples-xml/filevalid.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62
<title>See Also</title>
64
<link linkend="filebit"><citetitle>filebit</citetitle></link>,
65
<link linkend="filelen"><citetitle>filelen</citetitle></link>,
66
<link linkend="filenchnls"><citetitle>filenchnls</citetitle></link>,
67
<link linkend="filepeak"><citetitle>filepeak</citetitle></link>,
68
<link linkend="filesr"><citetitle>filesr</citetitle></link>
73
<title>Credits</title>
76
<member>Author: &namematt;</member>
77
<member>July 2010</member>
80
<para>Example written by &namejohn;.</para>
82
<para>New in Csound version 4.13</para>