1 <!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [ 2 <!--ArborText, Inc., 1988-1999, v.4002--> 3 <!--ARC : LSARC 2001/201 GNOME 2.X on Solaris--> 4 <!ENTITY cmd "esdcat"> 5 <!ENTITY % commonents SYSTEM "smancommon.ent"> 6 %commonents; 7 <!ENTITY % booktitles SYSTEM "booktitles.ent"> 8 %booktitles; 9 <!ENTITY suncopy "Copyright (c) 2003,2006 Sun Microsystems, Inc. All Rights Reserved."> 10 ]> 11 <?Pub UDT _bookmark _target> 12 <?Pub Inc> 13 <refentry id="esdcat-1"> 14 <!-- %Z%%M% %I% %E% SMI; --> 15 <refmeta><refentrytitle>esdcat</refentrytitle><manvolnum>1</manvolnum> 16 <refmiscinfo class="date">7 Jan 2003</refmiscinfo> 17 <refmiscinfo class="sectdesc">&man1;</refmiscinfo> 18 <refmiscinfo class="software">&release;</refmiscinfo> 19 <refmiscinfo class="arch">generic</refmiscinfo> 20 <refmiscinfo class="copyright">&suncopy;</refmiscinfo> 21 </refmeta> 22 <indexterm><primary>esdcat</primary></indexterm><indexterm><primary>play a 23 sound file</primary></indexterm><refnamediv id="esdcat-1-name"> 24 <refname>esdcat</refname><refpurpose>play a sound file</refpurpose></refnamediv> 25 <refsynopsisdiv id="esdcat-1-synp"><title>&synp-tt;</title> 26 <cmdsynopsis><command>&cmd;</command> 27 <arg choice="opt"><option>s <replaceable>hostname</replaceable>:<replaceable>port</replaceable></option></arg> 28 <arg choice="opt"><option>b</option></arg> 29 <arg choice="opt"><option>h</option></arg> 30 <arg choice="opt"><option>m</option></arg> 31 <arg choice="opt"><option>n <replaceable>filename</replaceable></option></arg> 32 <arg choice="opt"><option>r <replaceable>freq</replaceable></option></arg> 33 <arg choice="opt"><option role="nodash"><replaceable>filename</replaceable></option></arg> 34 </cmdsynopsis></refsynopsisdiv> 35 <refsect1 id="esdcat-1-desc"><title>&desc-tt;</title> 36 <para> 37 The <command>&cmd;</command> application pipes data from the filename specified 38 (or <literal>stdin</literal> if not specified) to the sound device, using the 39 Enlightened Sound Daemon (<filename>esd</filename>). 40 </para> 41 </refsect1> 42 <refsect1 id="esdcat-1-opts"><title>&opts-tt;</title> 43 <para>The following options are supported:</para> 44 <variablelist termlength="medium"> 45 <varlistentry> 46 <term><option>s <replaceable>hostname</replaceable>:<replaceable>port</replaceable></option></term> 47 <listitem><para> 48 Contact the <filename>esd</filename> server on 49 <replaceable>hostname</replaceable> at <replaceable>port</replaceable>. 50 </para> 51 </listitem></varlistentry> 52 <varlistentry> 53 <term><option>b</option></term> 54 <listitem><para> 55 Specify that the output should be in 8-bit format. By default, the output is in 56 16-bit format. 57 </para> 58 </listitem></varlistentry> 59 <varlistentry> 60 <term><option>h</option></term> 61 <listitem><para> 62 Display help text, and exit. 63 </para> 64 </listitem></varlistentry> 65 <varlistentry> 66 <term><option>m</option></term> 67 <listitem><para> 68 Specify that the output should be in mono format. By default, the output is in 69 stereo format. 70 </para> 71 </listitem></varlistentry> 72 <varlistentry> 73 <term><option>n <replaceable>filename</replaceable></option></term> 74 <listitem><para> 75 Specify the <replaceable>filename</replaceable> of the input file. If the 76 filename is specified both as an operand and with the <option>n</option> 77 option, then the value specified with the <option>n</option> option is ignored. 78 If no filename is specified with the command, then <literal>stdin</literal> is 79 used. 80 </para> 81 </listitem></varlistentry> 82 <varlistentry> 83 <term><option>r <replaceable>freq</replaceable></option></term> 84 <listitem><para> 85 Specify that the output rate should be set to <replaceable> freq</replaceable>. 86 By default, the output rate is set to 44.1 kHz. 87 </para> 88 </listitem></varlistentry> 89 </variablelist></refsect1> 90 <refsect1 id="esdcat-1-oper"><title>&oper-tt;</title> 91 <para>The following operands are supported:</para> 92 <variablelist termlength="medium"> 93 <varlistentry> 94 <term><option role="nodash"><replaceable>filename</replaceable></option></term> 95 <listitem><para> 96 Specify the <replaceable>filename</replaceable> of the input file. If no 97 filename is specified with the command, then <literal>stdin</literal> is used. 98 </para> 99 </listitem></varlistentry> 100 </variablelist></refsect1> 101 <refsect1 id="esdcat-1-exam"><title>&exam-tt;</title> 102 <example role="example"><title>Playing a sound file "beep" from 103 <literal>stdin</literal></title> 104 <para><screen>example% <userinput>&cmd; < beep</userinput></screen></para> 105 </example> 106 </refsect1> 107 <refsect1 id="esdcat-1-exit"><title>&exit-tt;</title> 108 <para>The following exit values are returned:</para> 109 <variablelist termlength="xtranarrow"> 110 <varlistentry> 111 <term><returnvalue>0</returnvalue></term> 112 <listitem><para> 113 Application exited successfully 114 </para> 115 </listitem></varlistentry> 116 <varlistentry> 117 <term><returnvalue>>0</returnvalue></term> 118 <listitem><para> 119 Application exited with failure 120 </para> 121 </listitem></varlistentry> 122 </variablelist></refsect1> 123 <refsect1 id="esdcat-1-file"><title>&file-tt;</title> 124 <para>The following files are used by this application:</para> 125 <variablelist termlength="medium"><varlistentry><term><filename>/usr/bin/&cmd;</filename> 126 </term><listitem><para>Executable for Enlightened Sound Daemon sound piper 127 </para> 128 </listitem></varlistentry> 129 </variablelist></refsect1> 130 <refsect1 id="esdcat-1-attr"><title>&attr-tt;</title> 131 <para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry> 132 <refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink> 133 for descriptions of the following attributes:</para> 134 <informaltable frame="all"> 135 <tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*"> 136 <colspec colname="COLSPEC1" colwidth="1*"> 137 <thead> 138 <row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center" 139 valign="middle">ATTRIBUTE VALUE</entry></row> 140 </thead> 141 <tbody> 142 <row><entry><para>Availability</para></entry><entry><para>SUNWgnome-audio 143 </para></entry></row> 144 <row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry 145 colname="COLSPEC1"><para>Volatile</para></entry></row> 146 </tbody> 147 </tgroup> 148 </informaltable> 149 </refsect1> 150 <refsect1 id="esdcat-1-also"><title>&also-tt;</title> 151 <!--Reference to another man page--> 152 <!--Reference to a Help manual--> 153 <!--Reference to a book.--> 154 <para> 155 <citerefentry><refentrytitle>esdplay</refentrytitle><manvolnum>1</manvolnum></citerefentry>, 156 <citerefentry><refentrytitle>esdrec</refentrytitle><manvolnum>1</manvolnum></citerefentry>, 157 <citerefentry><refentrytitle>esdsample</refentrytitle><manvolnum>1</manvolnum></citerefentry>, 158 <citerefentry><refentrytitle>esdmon</refentrytitle><manvolnum>1</manvolnum></citerefentry>, 159 <citerefentry><refentrytitle>esdctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>, 160 <citerefentry><refentrytitle>esd-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>, 161 <citerefentry><refentrytitle>libesd</refentrytitle><manvolnum>3</manvolnum></citerefentry>, 162 <citerefentry><refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry> 163 </para> 164 </refsect1> 165 <refsect1 id="esdcat-1-note"><title>¬e-tt;</title> 166 <para>Written by Brian Cameron, Sun Microsystems Inc., 2003, 2006.</para> 167 </refsect1> 168 </refentry> 169