esdsample(1)

esdsample1

Play a sample

Usage

esdsample [-s hostname:port] [-b] [-d] [-e] [-h] [-m] [-r freq] samplename

Overview

The esdsample utility plays a sample using the Enlighted Sound Daemon (esd).

Options

The following options are supported:

-s hostname:port Contact the esd server on hostname at port.

-b Specify that the output should be in 8-bit format. By default, the output is in 16-bit format.

-d Play the sample from file as raw data. The default behavior is to read the data from a sound file (.wav, .au, and so on). If this option is chosen, samplename is the name of a file.

-e Play the sample from the esd cache. If this option is chosen, samplename is the name of the sample in the cache.

-h Display help text, and exit.

-m Specify that the output should be in mono format. By default, the output is in stereo format.

-r freq Specify that the output rate should be set to freq. By default, the output rate is set to 44.1 kHz.

Operands

The following operands are supported:

samplename The name of the sample to be played. If the -e option is used, samplename is the esd cache name. Otherwise, samplename is a filename.

Examples

Example 1: Playing a sample from a file

example% esdsample generic.wav

Example 2: Playing a sample from the esd cache

example% esdsample -e esdctl:generic.wav

(where esdctl:generic.wav is the cache name)

Exit status

The following exit values are returned:

0 Application exited successfully

>0 Application exited with failure

Releases

7 releases since Debian 2.1 (Slink); the text changed 5 times.

  1. 2.1
  2. 2.2
  3. 3.0
  4. 3.1
  5. 4.0–5.0
  6. 6.0

From esound-clients 0.2.41-8 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.