User Commands esdctl(1)
NAME
esdctl - Enlightened Sound Daemon (esd) control program
SYNOPSIS
esdctl [-h] [--help] [-p string] [-s hostname:port] command
DESCRIPTION
The esdctl utility is a command-line control program for the
Enlightened Sound Daemon (esd). OPTIONS The following options are supported:-p string Prefix for cached samples. You can
also specify this option as follows:--prefix=string
-s hostname:port Contact the esd server on hostname
at port. You can also specify this option as follows:--server=hostname:port
-h, --help Display help text, and exit.
OPERANDS The following operands are supported: command The following commands are supported:allinfo Get player and sam-
ple information from the server cache sample Cache a sample in the server free name Uncache a sample in the serverSunOS 5.11 Last change: 8 Jan 2003 1
User Commands esdctl(1)
getid name Retrieve a sample id, given the sample name lock Do not allow foreign clients to use the server loop name Make a cached sample loop off Suspend sound outputso that other pro-
grams can use the audio device (this is the same as the standby option) on Resume sound output so that only esd can use the audio device (this is the same as the resume option) pansample id left right Set default panning for a sample, where id is the sample ID, and left and right are integers in the range 0 to 255 panstream id left right Set panning for a stream, where id is the stream ID, and left and right are integers in the range 0 to 255SunOS 5.11 Last change: 8 Jan 2003 2
User Commands esdctl(1)
play name Play a cached sample once resume Resume sound output so that only esd can use the audio device (this is the same as the on option)serverinfo Get server informa-
tion from the server standby Suspend sound outputso that other pro-
grams can use the audio device (this is the same as the off option) standbymode Check whether the server is on standby stop name Stop the looping sample at the end unlock Allow foreign clients to use the serverEXAMPLES
Example 1: Putting esd into Standby Modeexample% esdctl standby
Example 2: Ending Standby ModeSunOS 5.11 Last change: 8 Jan 2003 3
User Commands esdctl(1)
example% esdctl resume
Example 3: Loading a sample into the esd cacheexample% esdctl cache info.wav
Sample <3> uploaded. Name = esdctl:info.wav
This output indicates that the sample id is 3, and the sam-
ple name is esdctl:info.wav.
Example 4: Getting a sample id from the esd cacheexample% esdctl getid esdctl:info.wav
Example 5: Playing a sample from the esd cacheexample% esdctl play esdctl:info.wav
Example 6: Playing and looping a sampleexample% esdctl loop esdctl:info.wav
Example 7: Stopping a looped sample that is being playedexample% esdctl stop esdctl:info.wav
Example 8: Removing a sample from the esd cacheexample% esdctl free esdctl:info.wav
Example 9: Setting panning for a streamexample% esdctl panstream 1 100 155
Example 10: Setting panning for a sampleexample% esdctl pansample 1 155 100
EXIT STATUS The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES The following files are used by this application:SunOS 5.11 Last change: 8 Jan 2003 4
User Commands esdctl(1)
/usr/bin/esdctl Executable for Enlightened Sound
Daemon control programATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | gnome/gnome-audio |
|_____________________________|_____________________________|
| Interface stability | Volatile ||_____________________________|_____________________________|
SEE ALSO
esdcat(1), esdplay(1), esdrec(1), esdsample(1), esdmon(1),esd-config(1), libesd(3), attributes(5)
NOTES Written by Brian Cameron, Sun Microsystems Inc., 2003, 2006.SunOS 5.11 Last change: 8 Jan 2003 5