<?php
//TITLE=Shared recording server

$title = 'Shared recording server';
$progname = 'erec';

function usagetext($prog)
{
  exec($prog.' --help', $kk);
  $k='';foreach($kk as $s)$k.="$s\n";
  return $k;
}

$text = array(
   '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. 

<pre class=smallerpre>".htmlspecialchars(usagetext('erec'))."</pre>

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
<a href=\"http://oktober.stc.cx/source/streamixer.html\">resample</a>
to produce the wanted sample rate.

", '1. Copying' => "

erec has been written by Joel Yliluoma, a.k.a.
<a href=\"http://iki.fi/bisqwit/\">Bisqwit</a>,<br>
and is distributed under the terms of the
<a href=\"http://www.gnu.org/licenses/licenses.html#GPL\">General Public License</a> (GPL).

", '1. Requirements' => "

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

", '1. Changes' => "

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

", '1. 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:
  <code>/dev/dsp</code>: 6130, <code>/dev/dsp1</code>: 6179

", '1. See also' => "

<a href=\"http://iki.fi/bisqwit/source/streamixer.html#ecat\">ecat</a>:
The near opposite of erec, and stream mixing tools.

");
include '/WWW/progdesc.php';
