10139N/A<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
13625N/A<!--ARC : LSARC 2001/201 GNOME 2.X on Solaris-->
10139N/A<!ENTITY cmd "esdctl">
10139N/A<!ENTITY % commonents SYSTEM "smancommon.ent">
10139N/A%commonents;
10139N/A<!ENTITY % booktitles SYSTEM "booktitles.ent">
10139N/A%booktitles;
10139N/A<!ENTITY suncopy "Copyright (c) 2003,2006 Sun Microsystems, Inc. All Rights Reserved.">
10139N/A]>
10139N/A<?Pub UDT _bookmark _target>
10139N/A<?Pub Inc>
10139N/A<refentry id="esdctl-1">
10139N/A<!-- %Z%%M% %I% %E% SMI; -->
10139N/A<refmeta><refentrytitle>esdctl</refentrytitle><manvolnum>1</manvolnum>
10139N/A<refmiscinfo class="date">8 Jan 2003</refmiscinfo>
10139N/A<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
10139N/A<refmiscinfo class="software">&release;</refmiscinfo>
10139N/A<refmiscinfo class="arch">generic</refmiscinfo>
10139N/A<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
10139N/A</refmeta>
10139N/A<indexterm><primary>esdctl</primary></indexterm><indexterm><primary>Enlightened
10139N/ASound Daemon (esd) control program</primary></indexterm><refnamediv id="esdctl-1-name">
10139N/A<refname>esdctl</refname><refpurpose>Enlightened Sound Daemon (esd) control
10139N/Aprogram</refpurpose></refnamediv>
10139N/A<refsynopsisdiv id="esdctl-1-synp"><title>&synp-tt;</title>
10139N/A<cmdsynopsis><command>&cmd;</command><arg choice="opt"><option>h</option></arg><arg choice="opt"><option>-help</option></arg><arg choice="opt"><option>p <replaceable>string</replaceable></option></arg><arg choice="opt"><option>s <replaceable>hostname</replaceable>:<replaceable>
10139N/Aport</replaceable></option></arg><arg choice="plain"><option role="nodash"><replaceable>
10139N/Acommand</replaceable></option></arg>
10139N/A</cmdsynopsis></refsynopsisdiv>
10139N/A<refsect1 id="esdctl-1-desc"><title>&desc-tt;</title>
10139N/A<para>The <command>&cmd;</command> utility is a command-line control program
10139N/Afor the Enlightened Sound Daemon (<filename>esd</filename>).</para>
10139N/A</refsect1>
10139N/A<refsect1 id="esdctl-1-opts"><title>&opts-tt;</title>
10139N/A<para>The following options are supported:</para>
10139N/A<variablelist termlength="medium">
10139N/A<varlistentry><term><option>p <replaceable>
10139N/Astring</replaceable></option></term><listitem>
10139N/A<para>Prefix for cached samples. You can also specify this option as follows:</para>
10139N/A<para><option>-prefix=<replaceable>string</replaceable></option></para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>s <replaceable>
10139N/Ahostname</replaceable>:<replaceable>port</replaceable></option></term><listitem>
10139N/A<para>Contact the <filename>esd</filename> server on <replaceable>hostname
10139N/A</replaceable> at <replaceable>port</replaceable>. You can also specify this
10139N/Aoption as follows:</para>
10139N/A<para><option>-server=<replaceable>hostname</replaceable>:<replaceable>port
10139N/A</replaceable></option></para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>h</option>, <option>-help</option></term><listitem><para>Display help
10139N/Atext, and exit.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="esdctl-1-oper"><title>&oper-tt;</title>
10139N/A<para>The following operands are supported:</para>
10139N/A<variablelist termlength="narrow"><varlistentry><term><option role="nodash"><replaceable>
10139N/Acommand</replaceable></option></term>
10139N/A<listitem><para>
10139N/AThe following commands are supported:
10139N/A<variablelist termlength="medium"><varlistentry><term><option
10139N/Arole="nodash">allinfo</option></term><listitem><para>Get player and sample
10139N/Ainformation from the server</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">cache <replaceable>sample</replaceable></option></term>
10139N/A<listitem><para>Cache a sample in the server</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">free <replaceable>name</replaceable></option></term>
10139N/A<listitem><para>Uncache a sample in the server</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">getid <replaceable>name</replaceable></option></term>
10139N/A<listitem><para>Retrieve a sample id, given the sample name</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">lock &nbsp;&nbsp; &nbsp;&nbsp;</option></term>
10139N/A<listitem><para>Do not allow foreign clients to use the server</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">loop <replaceable>name</replaceable></option></term>
10139N/A<listitem><para>Make a cached sample loop</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">off</option></term><listitem><para>
10139N/ASuspend sound output so that other programs can use the audio device (this
10139N/Ais the same as the <option role="nodash">standby</option> option)</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">on</option></term><listitem><para>
10139N/AResume sound output so that only <filename>esd</filename> can use the audio
10139N/Adevice (this is the same as the <option role="nodash">resume</option> option)
10139N/A</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">pansample <replaceable>id</replaceable> <replaceable>
10139N/Aleft </replaceable><replaceable>right</replaceable></option></term><listitem>
10139N/A<para>Set default panning for a sample, where <replaceable>id</replaceable>
10139N/Ais the sample ID, and <replaceable>left </replaceable>and <replaceable>right
10139N/A</replaceable> are integers in the range 0 to 255</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">panstream <replaceable>id</replaceable> <replaceable>
10139N/Aleft </replaceable><replaceable>right</replaceable></option></term><listitem>
10139N/A<para>Set panning for a stream, where <replaceable>id</replaceable> is the
10139N/Astream ID, and <replaceable>left </replaceable>and <replaceable>right</replaceable>
10139N/Aare integers in the range 0 to 255</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">play <replaceable>name</replaceable></option></term>
10139N/A<listitem><para>Play a cached sample once</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">resume</option></term><listitem>
10139N/A<para>Resume sound output so that only <filename>esd</filename> can use the
10139N/Aaudio device (this is the same as the <option role="nodash">on</option> option)
10139N/A</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">serverinfo</option></term><listitem>
10139N/A<para>Get server information from the server</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">standby</option></term><listitem>
10139N/A<para>Suspend sound output so that other programs can use the audio device
10139N/A(this is the same as the <option role="nodash">off</option> option)</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">standbymode</option></term><listitem>
10139N/A<para>Check whether the server is on standby</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">stop <replaceable>name</replaceable></option></term>
10139N/A<listitem><para>Stop the looping sample at the end</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">unlock</option></term><listitem>
10139N/A<para>Allow foreign clients to use the server</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="esdctl-1-exam"><title>&exam-tt;</title>
10139N/A<example role="example"><title>Putting esd into Standby Mode</title>
10139N/A<para><screen>example% <userinput>&cmd; standby</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Ending Standby Mode</title>
10139N/A<para><screen>example% <userinput>&cmd; resume</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Loading a sample into the esd cache</title>
10139N/A<para><screen>example% <userinput>&cmd; cache info.wav</userinput>
10139N/A<computeroutput>Sample &lt;3> uploaded. Name = esdctl:info.wav</computeroutput></screen></para>
10139N/A<para>This output indicates that the sample id is <literal>3</literal>, and
10139N/Athe sample name is <literal>esdctl:info.wav</literal>.</para>
10139N/A</example>
10139N/A<example role="example"><title>Getting a sample id from the esd cache</title>
10139N/A<para><screen>example% <userinput>&cmd; getid esdctl:info.wav</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Playing a sample from the esd cache</title>
10139N/A<para><screen>example% <userinput>&cmd; play esdctl:info.wav</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Playing and looping a sample</title>
10139N/A<para><screen>example% <userinput>&cmd; loop esdctl:info.wav</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Stopping a looped sample that is being played
10139N/A</title>
10139N/A<para><screen>example% <userinput>&cmd; stop esdctl:info.wav</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Removing a sample from the esd cache</title>
10139N/A<para><screen>example% <userinput>&cmd; free esdctl:info.wav</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Setting panning for a stream</title>
10139N/A<para><screen>example% <userinput>&cmd; panstream 1 100 155</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Setting panning for a sample</title>
10139N/A<para><screen>example% <userinput>&cmd; pansample 1 155 100</userinput></screen></para>
10139N/A</example>
10139N/A</refsect1>
10139N/A<refsect1 id="esdctl-1-exit"><title>&exit-tt;</title>
10139N/A<para>The following exit values are returned:</para>
10139N/A<variablelist termlength="xtranarrow"><varlistentry><term><returnvalue>0</returnvalue></term>
10139N/A<listitem><para>Application exited successfully</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><returnvalue>>0</returnvalue></term><listitem><para>Application
10139N/Aexited with failure</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="esdctl-1-file"><title>&file-tt;</title>
10139N/A<para>The following files are used by this application:</para>
10139N/A<variablelist termlength="medium"><varlistentry><term><filename>/usr/bin/&cmd;</filename>
11904N/A</term><listitem><para>Executable for Enlightened Sound Daemon
10139N/Acontrol program</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="esdctl-1-attr"><title>&attr-tt;</title>
10139N/A<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
10139N/A<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
10139N/Afor descriptions of the following attributes:</para>
10139N/A<informaltable frame="all">
10139N/A<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
10139N/A<colspec colname="COLSPEC1" colwidth="1*">
10139N/A<thead>
10139N/A<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
10139N/Avalign="middle">ATTRIBUTE VALUE</entry></row>
10139N/A</thead>
10139N/A<tbody>
18745N/A<row><entry><para>Availability</para></entry><entry><para>gnome/gnome-audio
10139N/A</para></entry></row>
10139N/A<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
10139N/Acolname="COLSPEC1"><para>Volatile</para></entry></row>
10139N/A</tbody>
10139N/A</tgroup>
10139N/A</informaltable>
10139N/A</refsect1>
10139N/A<refsect1 id="esdctl-1-also"><title>&also-tt;</title>
10139N/A<!--Reference to another man page-->
10139N/A<!--Reference to a Help manual-->
10139N/A<!--Reference to a book.-->
11905N/A<para>
11905N/A<citerefentry><refentrytitle>esdcat</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11905N/A<citerefentry><refentrytitle>esdplay</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11905N/A<citerefentry><refentrytitle>esdrec</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11905N/A<citerefentry><refentrytitle>esdsample</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11905N/A<citerefentry><refentrytitle>esdmon</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11905N/A<citerefentry><refentrytitle>esd-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11905N/A<citerefentry><refentrytitle>libesd</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
11905N/A<citerefentry><refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry>
11905N/A</para>
10139N/A</refsect1>
10139N/A<refsect1 id="esdctl-1-note"><title>&note-tt;</title>
11933N/A<para>Written by Brian Cameron, Sun Microsystems Inc., 2003, 2006.</para>
10139N/A</refsect1>
10139N/A</refentry>