# Shared recording server

## 0. Contents

This is the documentation of erec-2.2.0.1.

## 1. Purpose

erec is a tool program for recording raw audio stream from the soundcard. Multiple instances of erec can be running at the same time sharing the same audio device. It works as a frontend to the audio device for programs wishing to listen at the same time.

    erec - shared recording server v2.2.0.1 (C) 1992,2002 Bisqwit

    Allows multiple applications request recorded data
    at the same time with different stream attributes.
    Usage: erec [<options> [...]]
    Options:
        -2, --stereo         Specifies stereo sound. Default is mono.
        -6, --word           16-bit mode. Redundant.
        -V, --version        Version information
        -b, --byte           8-bit mode. Normally 16-bit mode.
        -d, --device <file>  Specify device.
        -h, --help           Help
        -m, --mono           Redundant. It's here for esd compatibility.
        -r, --rate <num>     Specifies recording rate. 44100 is default.

Note: For best quality, it might be wise to always record 44.1 kHz 16-bit stereo (-6r44100) and resample the result with an external program like resample to produce the wanted sample rate.

## 2. Copying

erec has been written by Joel Yliluoma, a.k.a. Bisqwit,
and is distributed under the terms of the General Public License (GPL).

## 3. Requirements

GNU make is probably required.
A sound card (OSS) might prove useful.

## 4. Changes

Since version 2.2.0, esdcat functionality no longer exists in erec.
In 2.2.0, removed the 1sec latency between erec start and start of recording.

## 5. Documentation

erec uses tcp connections between the server (first launched erec by server) and client (all listeners). The ports are calculated from the device filename by a magic formula, which results in these ports for these examples: `/dev/dsp`: 6130, `/dev/dsp1`: 6179

## 6. See also

ecat: The near opposite of erec, and stream mixing tools.

## 7. Downloading

The official home page of erec is at http://iki.fi/bisqwit/source/erec.html.
Check there for new versions.

Generated from `progdesc.php` (last updated: Sat, 25 Jan 2003 16:53:34 +0200)
with `docmaker.php` (last updated: Thu, 13 Feb 2003 15:11:29 +0200)
at Thu, 3 Jul 2003 22:43:54 +0300